Changeset 10300 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2016-05-30T01:17:28+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java
r10200 r10300 130 130 } catch (NumberFormatException e) { 131 131 if (Main.isDebugEnabled()) { 132 Main.debug( "'"+o+"' cannot be converted to float");132 Main.debug('\'' + (String) o + "' cannot be converted to float"); 133 133 } 134 134 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r10245 r10300 743 743 private final Expression e; 744 744 745 /** 746 * Constructs a new {@code ExpressionFactory} 747 * @param e expression 748 */ 745 749 public ExpressionCondition(Expression e) { 746 750 this.e = e; … … 755 759 @Override 756 760 public String toString() { 757 return "[" + e+ ']';761 return '[' + e.toString() + ']'; 758 762 } 759 763 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/LiteralExpression.java
r8846 r10300 9 9 /** 10 10 * Simple literal value, that does not depend on other expressions. 11 * @since 5705 11 12 */ 12 13 public class LiteralExpression implements Expression { 13 14 private final Object literal; 14 15 16 /** 17 * Constructs a new {@code LiteralExpression}. 18 * @param literal literal 19 */ 15 20 public LiteralExpression(Object literal) { 16 21 CheckParameterUtil.ensureParameterNotNull(literal); … … 28 33 return Arrays.toString((float[]) literal); 29 34 } 30 return "<" + literal+ '>';35 return '<' + literal.toString() + '>'; 31 36 } 32 37 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r10033 r10300 435 435 @Override 436 436 public String toString() { 437 return left + " "+ (ChildOrParentSelectorType.PARENT.equals(type) ? '<' : '>') + link + ' ' + right;437 return left.toString() + ' ' + (ChildOrParentSelectorType.PARENT.equals(type) ? '<' : '>') + link + ' ' + right; 438 438 } 439 439 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LabelCompositionStrategy.java
r9371 r10300 269 269 @Override 270 270 public String toString() { 271 return "{" + getClass().getSimpleName() +'}';271 return '{' + getClass().getSimpleName() + '}'; 272 272 } 273 273
Note:
See TracChangeset
for help on using the changeset viewer.