Skip to content

Commit

Permalink
Fix #73: make GenericType not implement java.io.Serializable (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored Oct 11, 2023
1 parent 4fd4238 commit 4e4de31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Java ClassMate project: licensed under Apache License 2.0

Release notes:

1.5.2 (not yet released)
1.6.0 (10-Oct-2023)

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

1.5.1 (20-Oct-2019)

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<parent>
<groupId>com.fasterxml</groupId>
<artifactId>oss-parent</artifactId>
<version>43</version>
<version>55</version>
</parent>
<artifactId>classmate</artifactId>
<name>ClassMate</name>
<version>1.5.2-SNAPSHOT</version>
<version>1.6.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<description>Library for introspecting types with full generic information
including resolving of field and method types.
Expand Down Expand Up @@ -82,7 +82,7 @@ com.fasterxml.classmate.*;version=${project.version}
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.6</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/fasterxml/classmate/GenericType.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.fasterxml.classmate;

import java.io.Serializable;

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

0 comments on commit 4e4de31

Please sign in to comment.