< prev index next >

src/java.desktop/share/classes/java/awt/BasicStroke.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -155,11 +155,11 @@
 
     int join;
     int cap;
     float miterlimit;
 
-    float dash[];
+    float[] dash;
     float dash_phase;
 
     /**
      * Constructs a new {@code BasicStroke} with the specified
      * attributes.

@@ -187,11 +187,11 @@
      *         {@code dash} is zero
      * @throws IllegalArgumentException if dash lengths are all zero.
      */
     @ConstructorProperties({ "lineWidth", "endCap", "lineJoin", "miterLimit", "dashArray", "dashPhase" })
     public BasicStroke(float width, int cap, int join, float miterlimit,
-                       float dash[], float dash_phase) {
+                       float[] dash, float dash_phase) {
         if (width < 0.0f) {
             throw new IllegalArgumentException("negative width");
         }
         if (cap != CAP_BUTT && cap != CAP_ROUND && cap != CAP_SQUARE) {
             throw new IllegalArgumentException("illegal end cap value");
< prev index next >