--- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2018-10-01 10:01:15.558026000 +0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2018-10-01 10:01:15.070026000 +0700 @@ -132,13 +132,13 @@ // Transient variables (recalculated each time TabbedPane is layed out) /** Tab runs */ - protected int tabRuns[] = new int[10]; + protected int[] tabRuns = new int[10]; /** Run count */ protected int runCount = 0; /** Selected run */ protected int selectedRun = -1; /** Tab rects */ - protected Rectangle rects[] = new Rectangle[0]; + protected Rectangle[] rects = new Rectangle[0]; /** Maximum tab height */ protected int maxTabHeight; /** Maximum tab width */ @@ -986,8 +986,8 @@ * subtracting xCropLen[i] from (tab.y + tab.height) and adding yCropLen[i] * to (tab.x). */ - private static int xCropLen[] = {1,1,0,0,1,1,2,2}; - private static int yCropLen[] = {0,3,3,6,6,9,9,12}; + private static int[] xCropLen = {1,1,0,0,1,1,2,2}; + private static int[] yCropLen = {0,3,3,6,6,9,9,12}; private static final int CROP_SEGMENT = 12; private static Polygon createCroppedTabShape(int tabPlacement, Rectangle tabRect, int cropline) { @@ -1017,8 +1017,8 @@ rcnt++; } int npts = 2 + (rcnt*8); - int xp[] = new int[npts]; - int yp[] = new int[npts]; + int[] xp = new int[npts]; + int[] yp = new int[npts]; int pcnt = 0; xp[pcnt] = ostart;