Changeset 2092

Show
Ignore:
Timestamp:
07-11-11 17:28:37 (2 years ago)
Author:
tjeerd@…
Message:

Neat new code improvements!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy

    r2091 r2092  
    11101110        protected String createFieldId( Map attrs ) { 
    11111111                // TODO: What if one of the attributes contains a comma? 
    1112                 def name = attrs.name; 
    1113                 def id = attrs.id ?: name; 
    1114                 def source = attrs.source; 
    1115                 def type = attrs.type ?: "" 
    1116         def unit = attrs.unit ?: "" 
     1112                def name = new String(attrs.name); 
     1113                def id = new String(attrs.id ?: name); 
     1114                def source = new String(attrs.source); 
     1115                def type = new String(attrs.type ?: ""); 
     1116        def unit = new String(attrs.unit ?: ""); 
    11171117 
    11181118                return id.bytes.encodeBase64().toString() + "," +