Skip to content

Fix #73: make GenericType not implement java.io.Serializable #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() { }
}