File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
src/main/java/omero/gateway/model Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ protected void setVersion(int version) {
278278 if (value instanceof IMutable ) {
279279 IMutable m = (IMutable ) value ;
280280 setDirty (true );
281- m .setVersion (new Integer (version ));
281+ m .setVersion (Integer . valueOf (version ));
282282 }
283283 }
284284
Original file line number Diff line number Diff line change @@ -311,14 +311,14 @@ public void setAnnotations(Set newValue) {
311311 while (m .moreDeletions ()) {
312312 setDirty (true );
313313 asDataset ().unlinkAnnotation (m .nextDeletion ().asAnnotation ());
314- annotationCount = annotationCount == null ? null : new Long (
314+ annotationCount = annotationCount == null ? null : Long . valueOf (
315315 annotationCount .longValue () - 1 );
316316 }
317317
318318 while (m .moreAdditions ()) {
319319 setDirty (true );
320320 asDataset ().linkAnnotation (m .nextAddition ().asAnnotation ());
321- annotationCount = annotationCount == null ? null : new Long (
321+ annotationCount = annotationCount == null ? null : Long . valueOf (
322322 annotationCount .longValue () + 1 );
323323 }
324324
Original file line number Diff line number Diff line change @@ -505,14 +505,14 @@ public void setAnnotations(Set newValue) {
505505 while (m .moreDeletions ()) {
506506 setDirty (true );
507507 asImage ().unlinkAnnotation (m .nextDeletion ().asAnnotation ());
508- annotationCount = annotationCount == null ? null : new Long (
508+ annotationCount = annotationCount == null ? null : Long . valueOf (
509509 annotationCount .longValue () - 1 );
510510 }
511511
512512 while (m .moreAdditions ()) {
513513 setDirty (true );
514514 asImage ().linkAnnotation (m .nextAddition ().asAnnotation ());
515- annotationCount = annotationCount == null ? null : new Long (
515+ annotationCount = annotationCount == null ? null : Long . valueOf (
516516 annotationCount .longValue () + 1 );
517517 }
518518
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ protected List<Point2D.Double> parsePointsToPoint2DList(String str)
113113 n = t .countTokens ()/2 ;
114114 for (int j = 0 ; j < n ; j ++) {
115115 points .add (
116- new Point2D .Double (new Double (t .nextToken ()), new Double (
116+ new Point2D .Double (Double . valueOf (t .nextToken ()), Double . valueOf (
117117 t .nextToken ())));
118118 }
119119 }
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ public double[] getStrokeDashArray()
273273 String [] values = v .split ("\\ s*,\\ s*" );
274274 double [] dashes = new double [values .length ];
275275 for (int i = 0 ; i < values .length ; i ++)
276- dashes [i ] = new Double (values [i ]);
276+ dashes [i ] = Double . valueOf (values [i ]);
277277 return dashes ;
278278 }
279279
You can’t perform that action at this time.
0 commit comments