Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coekie/gentyref
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: leangen/geantyref
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Jul 29, 2016

  1. #1 Support for AnnotatedTypes

    Bojan Tomic committed Jul 29, 2016
    Copy the full SHA
    70c7f62 View commit details

Commits on Jul 30, 2016

  1. #1 Support for AnnotatedTypes

    Bojan Tomic committed Jul 30, 2016
    Copy the full SHA
    f67b2d3 View commit details

Commits on Jul 31, 2016

  1. #1 Support for AnnotatedTypes

    Bojan Tomic committed Jul 31, 2016
    Copy the full SHA
    7f99585 View commit details
  2. #1 Support for AnnotatedTypes

    Bojan Tomic committed Jul 31, 2016
    Copy the full SHA
    a762a36 View commit details
  3. Preparing release 0.7.0

    Bojan Tomic committed Jul 31, 2016
    Copy the full SHA
    2caf31f View commit details
  4. Preparing release candidate 1 of v1.0.0

    Bojan Tomic committed Jul 31, 2016
    Copy the full SHA
    3e809a0 View commit details
  5. Added README

    Bojan Tomic committed Jul 31, 2016
    Copy the full SHA
    e06d307 View commit details

Commits on Aug 4, 2016

  1. Annotation merged properly when replacing variables

    Bojan Tomic committed Aug 4, 2016
    Copy the full SHA
    d8d93e2 View commit details

Commits on Oct 7, 2016

  1. All Type implementations made private

    Add explicit static clone() method
    Moved static equals() to GenericTypeReflector
    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    ce20f7a View commit details
  2. Code reformatted according to the Google Style Guide

    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    d201153 View commit details
  3. Release: v1.0.0

    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    e531ef5 View commit details
  4. Added Javadoc

    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    fc515c8 View commit details
  5. Renaming the library, packages and artifacts to geantyref, to prevent…

    … name/version confusion in the future
    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    9d335af View commit details
  6. Updating README to reflect the name change

    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    c8d2d47 View commit details
  7. Updating names, links etc

    Bojan Tomic committed Oct 7, 2016
    Copy the full SHA
    9a71a9f View commit details

Commits on Oct 8, 2016

  1. Added more meta info

    Bojan Tomic committed Oct 8, 2016
    Copy the full SHA
    c351098 View commit details
  2. Setting up the release process for Maven Central

    Bojan Tomic committed Oct 8, 2016
    Copy the full SHA
    b5b7291 View commit details
  3. Setting up the release process for Maven Central

    Bojan Tomic committed Oct 8, 2016
    Copy the full SHA
    a8dad06 View commit details
  4. Ignore IntelliJ and OSX files

    Bojan Tomic committed Oct 8, 2016
    Copy the full SHA
    26cc7cf View commit details
  5. Copy the full SHA
    f0d3364 View commit details
  6. Copy the full SHA
    bb1016a View commit details
  7. Update meta on deployment

    Bojan Tomic committed Oct 8, 2016
    Copy the full SHA
    f0fccc1 View commit details

Commits on Oct 12, 2016

  1. Fixed numerous issues with AnnotatedArrayTypes

    Annotations properly merged for resolved type variables and parameterized types
    Added tests for annotation inheritance and merging
    Bojan Tomic committed Oct 12, 2016
    Copy the full SHA
    c415cb9 View commit details

Commits on Oct 23, 2016

  1. Added Maven instructions to README

    Bojan Tomic committed Oct 23, 2016
    Copy the full SHA
    8fc5e0a View commit details

Commits on Oct 29, 2016

  1. Fixed annotation merging for more cases

    More tests for annotation inheritance and merging
    TypeFactory can produce AnnotatedTypes
    Cleaned up Javadoc
    Minor refactoring
    Bojan Tomic committed Oct 29, 2016
    Copy the full SHA
    9b58a47 View commit details

Commits on Nov 2, 2016

  1. Normalizing hashCode implementation

    Bojan Tomic committed Nov 2, 2016
    Copy the full SHA
    517307c View commit details

Commits on Nov 20, 2016

  1. Added the ability to find the exact sub type of a given type (when po…

    …ssible)
    Bojan Tomic committed Nov 20, 2016
    Copy the full SHA
    f099ae0 View commit details
  2. [maven-release-plugin] prepare release geantyref-v1.1.0

    Bojan Tomic committed Nov 20, 2016
    Copy the full SHA
    cf0240e View commit details
  3. Copy the full SHA
    68c569f View commit details

Commits on Mar 6, 2017

  1. Added support for getting constructor parameter types

    Fixed hashCode() inconsistency in various type impls
    Bojan Tomic committed Mar 6, 2017
    Copy the full SHA
    b616414 View commit details
  2. Copy the full SHA
    e8914cc View commit details
  3. Copy the full SHA
    7a22d7d View commit details
  4. README update

    Bojan Tomic committed Mar 6, 2017
    Copy the full SHA
    5678c32 View commit details
  5. Copy the full SHA
    62f8d73 View commit details
  6. Adding Maven badge :)

    Bojan Tomic committed Mar 6, 2017
    Copy the full SHA
    6508dbd View commit details

Commits on Mar 14, 2017

  1. Copy the full SHA
    55e9033 View commit details

Commits on Apr 9, 2017

  1. Added the ability to dynamically create annotation instances via Type…

    …Factory#annotation
    
    Added the examples and other documentation to README.md
    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    e1147c0 View commit details
  2. Copy the full SHA
    ff5c1e8 View commit details
  3. Copy the full SHA
    8866edd View commit details
  4. Fixing Javadoc

    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    532cb37 View commit details
  5. Copy the full SHA
    f34a71e View commit details
  6. Copy the full SHA
    91a99e2 View commit details
  7. Reverting accidental README deletion

    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    ea3e4fd View commit details
  8. Moved usage instructions closer to the top of README

    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    a1a0a04 View commit details
  9. Added TOC to README

    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    337b21d View commit details
  10. Fixed TOC

    Bojan Tomic committed Apr 9, 2017
    Copy the full SHA
    cda29d9 View commit details

Commits on Apr 14, 2017

  1. Javadoc fix : @linkplain -> @link

    Bojan Tomic committed Apr 14, 2017
    Copy the full SHA
    97983ff View commit details
  2. Copy the full SHA
    ff8f9d1 View commit details
  3. Added Javadoc

    Bojan Tomic committed Apr 14, 2017
    Copy the full SHA
    38d1f09 View commit details
  4. Minor refactor + Javadoc

    Bojan Tomic committed Apr 14, 2017
    Copy the full SHA
    f9a3e50 View commit details
Showing with 7,784 additions and 3,462 deletions.
  1. +5 −0 .gitignore
  2. +3 −0 .travis.yml
  3. +201 −0 LICENSE
  4. +269 −0 README.md
  5. +2 −0 bnd.bnd
  6. +198 −154 pom.xml
  7. +0 −28 src/main/java/com/googlecode/gentyref/CaptureType.java
  8. +0 −65 src/main/java/com/googlecode/gentyref/CaptureTypeImpl.java
  9. +0 −48 src/main/java/com/googlecode/gentyref/GenericArrayTypeImpl.java
  10. +0 −488 src/main/java/com/googlecode/gentyref/GenericTypeReflector.java
  11. +0 −78 src/main/java/com/googlecode/gentyref/ParameterizedTypeImpl.java
  12. +0 −46 src/main/java/com/googlecode/gentyref/TypeArgumentNotInBoundException.java
  13. +0 −278 src/main/java/com/googlecode/gentyref/TypeFactory.java
  14. +0 −73 src/main/java/com/googlecode/gentyref/TypeToken.java
  15. +0 −18 src/main/java/com/googlecode/gentyref/UnresolvedTypeVariableException.java
  16. +0 −98 src/main/java/com/googlecode/gentyref/VarMap.java
  17. +0 −53 src/main/java/com/googlecode/gentyref/WildcardTypeImpl.java
  18. +48 −0 src/main/java/io/leangen/geantyref/AnnotatedArrayTypeImpl.java
  19. +26 −0 src/main/java/io/leangen/geantyref/AnnotatedCaptureType.java
  20. +125 −0 src/main/java/io/leangen/geantyref/AnnotatedCaptureTypeImpl.java
  21. +61 −0 src/main/java/io/leangen/geantyref/AnnotatedParameterizedTypeImpl.java
  22. +106 −0 src/main/java/io/leangen/geantyref/AnnotatedTypeImpl.java
  23. +262 −0 src/main/java/io/leangen/geantyref/AnnotatedTypeMap.java
  24. +109 −0 src/main/java/io/leangen/geantyref/AnnotatedTypeSet.java
  25. +61 −0 src/main/java/io/leangen/geantyref/AnnotatedTypeVariableImpl.java
  26. +90 −0 src/main/java/io/leangen/geantyref/AnnotatedWildcardTypeImpl.java
  27. +23 −0 src/main/java/io/leangen/geantyref/AnnotationFormatException.java
  28. +238 −0 src/main/java/io/leangen/geantyref/AnnotationInvocationHandler.java
  29. +57 −0 src/main/java/io/leangen/geantyref/CaptureType.java
  30. +86 −0 src/main/java/io/leangen/geantyref/CaptureTypeImpl.java
  31. +53 −0 src/main/java/io/leangen/geantyref/GenericArrayTypeImpl.java
  32. +1,339 −0 src/main/java/io/leangen/geantyref/GenericTypeReflector.java
  33. +81 −0 src/main/java/io/leangen/geantyref/ParameterizedTypeImpl.java
  34. +51 −0 src/main/java/io/leangen/geantyref/TypeArgumentNotInBoundException.java
  35. +354 −0 src/main/java/io/leangen/geantyref/TypeFactory.java
  36. +100 −0 src/main/java/io/leangen/geantyref/TypeToken.java
  37. +109 −0 src/main/java/io/leangen/geantyref/TypeVariableImpl.java
  38. +126 −0 src/main/java/io/leangen/geantyref/TypeVisitor.java
  39. +24 −0 src/main/java/io/leangen/geantyref/UnresolvedTypeVariableException.java
  40. +174 −0 src/main/java/io/leangen/geantyref/VarMap.java
  41. +55 −0 src/main/java/io/leangen/geantyref/WildcardTypeImpl.java
  42. +11 −0 src/main/java/module-info.java
  43. +0 −698 src/test/java/com/googlecode/gentyref/AbstractGenericsReflectorTest.java
  44. +0 −26 src/test/java/com/googlecode/gentyref/AbstractReflectionStrategy.java
  45. +0 −50 src/test/java/com/googlecode/gentyref/AddWildcardParametersTest.java
  46. +0 −48 src/test/java/com/googlecode/gentyref/CaptureSamplesTest.java
  47. +0 −33 src/test/java/com/googlecode/gentyref/GenTyRefReflectionStrategy.java
  48. +0 −169 src/test/java/com/googlecode/gentyref/GenericMethodTest.java
  49. +0 −71 src/test/java/com/googlecode/gentyref/GenericTypeReflectorTest.java
  50. +0 −31 src/test/java/com/googlecode/gentyref/Issue13Test.java
  51. +0 −64 src/test/java/com/googlecode/gentyref/Issue3Test.java
  52. +0 −18 src/test/java/com/googlecode/gentyref/ReflectionStrategy.java
  53. +0 −86 src/test/java/com/googlecode/gentyref/SamplesTest.java
  54. +0 −46 src/test/java/com/googlecode/gentyref/StackoverflowQ182872Test.java
  55. +0 −92 src/test/java/com/googlecode/gentyref/TypeTest.java
  56. +0 −24 src/test/java/com/googlecode/gentyref/factory/GenericOuter.java
  57. +0 −59 src/test/java/com/googlecode/gentyref/factory/Issue16Test.java
  58. +0 −7 src/test/java/com/googlecode/gentyref/factory/RawOuter.java
  59. +0 −11 src/test/java/com/googlecode/gentyref/factory/SimpleOuter.java
  60. +0 −5 src/test/java/com/googlecode/gentyref/factory/StringOuter.java
  61. +0 −497 src/test/java/com/googlecode/gentyref/factory/TypeFactoryTest.java
  62. +780 −0 src/test/java/io/leangen/geantyref/AbstractGenericsReflectorTest.java
  63. +31 −0 src/test/java/io/leangen/geantyref/AbstractReflectionStrategy.java
  64. +61 −0 src/test/java/io/leangen/geantyref/AddWildcardParametersTest.java
  65. +58 −0 src/test/java/io/leangen/geantyref/AnnotationInvocationHandlerTest.java
  66. +44 −0 src/test/java/io/leangen/geantyref/Annotations.java
  67. +149 −0 src/test/java/io/leangen/geantyref/AnnotationsMergeTest.java
  68. +56 −0 src/test/java/io/leangen/geantyref/Assertions.java
  69. +53 −0 src/test/java/io/leangen/geantyref/CaptureSamplesTest.java
  70. +38 −0 src/test/java/io/leangen/geantyref/GenTyRefReflectionStrategy.java
  71. +176 −0 src/test/java/io/leangen/geantyref/GenericMethodTest.java
  72. +343 −0 src/test/java/io/leangen/geantyref/GenericTypeReflectorTest.java
  73. +18 −0 src/test/java/io/leangen/geantyref/Inter.java
  74. +36 −0 src/test/java/io/leangen/geantyref/Issue13Test.java
  75. +34 −0 src/test/java/io/leangen/geantyref/Issue17Test.java
  76. +131 −0 src/test/java/io/leangen/geantyref/Issue20Test.java
  77. +70 −0 src/test/java/io/leangen/geantyref/Issue27Test.java
  78. +69 −0 src/test/java/io/leangen/geantyref/Issue3Test.java
  79. +7 −0 src/test/java/io/leangen/geantyref/QuantityX.java
  80. +26 −0 src/test/java/io/leangen/geantyref/ReflectionStrategy.java
  81. +94 −0 src/test/java/io/leangen/geantyref/SamplesTest.java
  82. +64 −0 src/test/java/io/leangen/geantyref/StackoverflowQ182872Test.java
  83. +111 −0 src/test/java/io/leangen/geantyref/ToStringTest.java
  84. +108 −0 src/test/java/io/leangen/geantyref/TypeTest.java
  85. +7 −0 src/test/java/io/leangen/geantyref/UnitX.java
  86. +29 −0 src/test/java/io/leangen/geantyref/factory/GenericOuter.java
  87. +67 −0 src/test/java/io/leangen/geantyref/factory/Issue16Test.java
  88. +12 −0 src/test/java/io/leangen/geantyref/factory/RawOuter.java
  89. +16 −0 src/test/java/io/leangen/geantyref/factory/SimpleOuter.java
  90. +10 −0 src/test/java/io/leangen/geantyref/factory/StringOuter.java
  91. +639 −0 src/test/java/io/leangen/geantyref/factory/TypeFactoryTest.java
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
target
release.properties
pom.xml.releaseBackup
.DS_Store
*.iml
.idea
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: java
jdk:
- openjdk8
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading