Skip to content

Commit

Permalink
Remove obsolete @SuppressWarnings("deprecated") following JBM2 upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
pferraro committed Dec 14, 2016
1 parent bbfb97c commit 9397d74
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -32,18 +32,16 @@
* Adapts a {@link org.wildfly.clustering.marshalling.Externalizer} to a JBoss Marshalling {@link org.jboss.marshalling.Externalizer}.
* @author Paul Ferraro
*/
@SuppressWarnings("deprecation")
public class ExternalizerAdapter implements org.jboss.marshalling.Externalizer {
private static final long serialVersionUID = 1714120446322944436L;

@SuppressWarnings("rawtypes")
private final Externalizer externalizer;
private final Externalizer<Object> externalizer;

@SuppressWarnings("unchecked")
public ExternalizerAdapter(Externalizer<?> externalizer) {
this.externalizer = externalizer;
this.externalizer = (Externalizer<Object>) externalizer;
}

@SuppressWarnings("unchecked")
@Override
public void writeExternal(Object subject, ObjectOutput output) throws IOException {
this.externalizer.writeObject(output, subject);
Expand All @@ -53,5 +51,4 @@ public void writeExternal(Object subject, ObjectOutput output) throws IOExceptio
public Object createExternal(Class<?> subjectType, ObjectInput input) throws IOException, ClassNotFoundException {
return this.externalizer.readObject(input);
}

}

0 comments on commit 9397d74

Please sign in to comment.