Skip to content

Commit 4e4de31

Browse files
authored
Fix #73: make GenericType not implement java.io.Serializable (#77)
1 parent 4fd4238 commit 4e4de31

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

VERSION.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ Java ClassMate project: licensed under Apache License 2.0
33

44
Release notes:
55

6-
1.5.2 (not yet released)
6+
1.6.0 (10-Oct-2023)
77

88
#70: Remove dead allocation
99
(reported by Dave B, @mebigfatguy)
10-
- Oss-parent to version 43 (junit version, javadoc links, jacoco)
10+
#73: Make `GenericType` not implement `Serializable`
11+
- Oss-parent to version 55 (junit version, javadoc links, jacoco)
1112

1213
1.5.1 (20-Oct-2019)
1314

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<parent>
44
<groupId>com.fasterxml</groupId>
55
<artifactId>oss-parent</artifactId>
6-
<version>43</version>
6+
<version>55</version>
77
</parent>
88
<artifactId>classmate</artifactId>
99
<name>ClassMate</name>
10-
<version>1.5.2-SNAPSHOT</version>
10+
<version>1.6.0-SNAPSHOT</version>
1111
<packaging>bundle</packaging>
1212
<description>Library for introspecting types with full generic information
1313
including resolving of field and method types.
@@ -82,7 +82,7 @@ com.fasterxml.classmate.*;version=${project.version}
8282
<plugin>
8383
<groupId>org.sonatype.plugins</groupId>
8484
<artifactId>nexus-staging-maven-plugin</artifactId>
85-
<version>1.6.6</version>
85+
<version>1.6.13</version>
8686
<extensions>true</extensions>
8787
<configuration>
8888
<serverId>sonatype-nexus-staging</serverId>

src/main/java/com/fasterxml/classmate/GenericType.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.fasterxml.classmate;
22

3-
import java.io.Serializable;
4-
53
/**
64
* This class is used to pass full generics type information, and
75
* avoid problems with type erasure (that basically removes most
@@ -16,10 +14,13 @@
1614
* GenericType type = new GenericType&lt;List&lt;Integer&gt;&gt;() { };
1715
*</pre>
1816
* which can be passed to methods that accept <code>GenericReference</code>.
17+
*<p>
18+
* NOTE: before version 1.6 implemented {@link java.io.Serializable}.
19+
* Removed due to
20+
* <a href="https://github.com/FasterXML/java-classmate/issues/73">issue #73</a>.
1921
*/
20-
@SuppressWarnings("serial")
2122
public abstract class GenericType<T>
22-
implements Serializable, java.lang.reflect.Type
23+
implements java.lang.reflect.Type
2324
{
2425
protected GenericType() { }
2526
}

0 commit comments

Comments
 (0)