Changeset 8:d44b607482b3 in rrlib_serialization-java


Ignore:
Timestamp:
16.12.2013 14:48:04 (6 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Serialization.java

    r7 r8  
    314314        } 
    315315        Class<?> type = src.getClass(); 
    316         if (type.isPrimitive() || Number.class.isAssignableFrom(type) || Boolean.class.equals(type) || String.class.equals(type)) { 
     316        boolean immutable = type.isPrimitive() || Number.class.isAssignableFrom(type) || Boolean.class.equals(type) || String.class.equals(type); 
     317        immutable &= (!Copyable.class.isAssignableFrom(type)); 
     318        if (immutable) { 
    317319            return src; 
    318320        } 
Note: See TracChangeset for help on using the changeset viewer.