Skip to content

Commit

Permalink
feat: add support for jpms
Browse files Browse the repository at this point in the history
- chore: add mvn build wrapper
- chore: add java9-compliant implementations where needed
- chore: remove `Automatic-Module-Name`

Fixes and closes #28

Signed-off-by: Sam Gammon <sam@elide.ventures>
  • Loading branch information
sgammon committed Aug 18, 2024
1 parent 44cb50f commit f108b3a
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<release>8</release>
<source>9</source>
<target>9</target>
<release>9</release>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ public int hashCode() {
public String toString() {
return componentType.toString() + " " + annotationsString() + "[]";
}

@Override
public AnnotatedType getAnnotatedOwnerType() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ public String toString() {
typeName.append(rawName);
return annotationsString() + typeName + "<" + typesString(typeArguments) + ">";
}

@Override
public AnnotatedType getAnnotatedOwnerType() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ public boolean equals(Object other) {
public String toString() {
return annotationsString() + ((TypeVariable<?>) type).getName();
}

@Override
public AnnotatedType getAnnotatedOwnerType() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,9 @@ private static void validateBounds(WildcardType type, AnnotatedType[] lowerBound
}
}
}

@Override
public AnnotatedType getAnnotatedOwnerType() {
return null;
}
}
12 changes: 12 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* License: Apache License, Version 2.0
* See the LICENSE file in the root directory or at <a href="http://www.apache.org/licenses/LICENSE-2">apache.org</a>.
*/

/**
* GenTyRef - Type reflection library for Java
*/
module io.leangen.geantyref {
requires static java.desktop;
exports io.leangen.geantyref;
}

0 comments on commit f108b3a

Please sign in to comment.