< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2017, 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
@@ -1512,13 +1512,13 @@
private Style createResolvedStyle(String selector, Vector<Element> elements,
HTML.Tag t) {
int numElements = elements.size();
// Build three arrays, one for tags, one for class's, and one for
// id's
- String tags[] = new String[numElements];
- String ids[] = new String[numElements];
- String classes[] = new String[numElements];
+ String[] tags = new String[numElements];
+ String[] ids = new String[numElements];
+ String[] classes = new String[numElements];
for (int counter = 0; counter < numElements; counter++) {
Element e = elements.elementAt(counter);
AttributeSet attr = e.getAttributes();
if (counter == 0 && e.isLeaf()) {
// For leafs, we use the second tier attributes.
@@ -2445,11 +2445,11 @@
return result;
}
/* list of roman numerals */
- static final char romanChars[][] = {
+ static final char[][] romanChars = {
{'i', 'v'},
{'x', 'l' },
{'c', 'd' },
{'m', '?' },
};
@@ -3408,10 +3408,10 @@
/**
* The HTML/CSS size model has seven slots
* that one can assign sizes to.
*/
- static final int sizeMapDefault[] = { 8, 10, 12, 14, 18, 24, 36 };
+ static final int[] sizeMapDefault = { 8, 10, 12, 14, 18, 24, 36 };
- private int sizeMap[] = sizeMapDefault;
+ private int[] sizeMap = sizeMapDefault;
private boolean w3cLengthUnits = false;
}
< prev index next >