|
| 1 | +2015-04-18 Andrew John Hughes < [email protected]> |
| 2 | + |
| 3 | + * gnu/xml/stream/SAXParser.java: |
| 4 | + (getParser()): Add @Override. |
| 5 | + (getXMLReader()): Likewise. |
| 6 | + (isNamespaceAware()): Likewise. |
| 7 | + (isValidating()): Likewise. |
| 8 | + (setProperty(String,Object): Likewise. |
| 9 | + (getProperty(String)): Likewise. |
| 10 | + (isXIncludeAware()): Likewise. |
| 11 | + (reset()): Likewise. |
| 12 | + (getFeature(String)): Likewise. |
| 13 | + (setFeature(String,boolean)): Likewise. |
| 14 | + (setEntityResolver(EntityResolver)): Likewise. |
| 15 | + (getEntityResolver()): Likewise. |
| 16 | + (setDTDHandler(DTDHandler)): Likewise. |
| 17 | + (getDTDHandler()): Likewise. |
| 18 | + (setContentHandler(ContentHandler)): Likewise. |
| 19 | + (getContentHandler()): Likewise. |
| 20 | + (setErrorHandler(ErrorHandler)): Likewise. |
| 21 | + (getErrorHandler()): Likewise. |
| 22 | + (parse(InputSource)): Likewise. Add type |
| 23 | + parameters to collection usage. Add |
| 24 | + default cases in switch statements. Check |
| 25 | + in is not null before attempting to call |
| 26 | + close(). Remove superfluous else block. |
| 27 | + (isIgnorableWhitespace(XMLParser,char,boolean)): |
| 28 | + Remove exception declaration which is never thrown. |
| 29 | + Rename 'reader' to 'r' to avoid shadowing. Fix |
| 30 | + ContentModel type reference to refer to new enum. |
| 31 | + (parse(String)): Add @Override. |
| 32 | + (getIndex(String)): Likewise. |
| 33 | + (getIndex(String,String)): Likewise. |
| 34 | + (getLength()): Likewise. |
| 35 | + (getLocalName(int)): Likewise. |
| 36 | + (getQName(int)): Likewise. |
| 37 | + (getType(int)): Likewise. |
| 38 | + (getType(String)): Likewise. |
| 39 | + (getType(String,String)): Likewise. |
| 40 | + (getURI(int)): Likewise. |
| 41 | + (getValue(int)): Likewise. |
| 42 | + (getValue(String)): Likewise. |
| 43 | + (getValue(String,String)): Likewise. |
| 44 | + (isDeclared(int)): Likewise. |
| 45 | + (isDeclared(String)): Likewise. |
| 46 | + (isDeclared(Stirng,String)): Likewise. |
| 47 | + (isSpecified(int)): Likewise. |
| 48 | + (isSpecified(String)): Likewise. |
| 49 | + (isSpecified(String,String)): Likewise. |
| 50 | + (getColumnNumber()): Likewise. |
| 51 | + (getLineNumber()): Likewise. |
| 52 | + (getPublicId()): Likewise. |
| 53 | + (getSystemId()): Likewise. |
| 54 | + (getEncoding()): Likewise. |
| 55 | + (getXMLVersion()): Likewise. |
| 56 | + (resolveEntity(String,String,String,String)): |
| 57 | + Likewise. Avoid shadowing of baseURI. |
| 58 | + (resolveAsXMLEventReader(String)): Remove |
| 59 | + unused method |
| 60 | + (resolveAsXMLStreamReader(String)): Likewise. |
| 61 | + (report(String,String,Object,Location)): |
| 62 | + Add @Override. |
| 63 | + (main(String[])): Add type parameter to Class |
| 64 | + instance. |
| 65 | + * gnu/xml/stream/XMLParser.java: |
| 66 | + Add type parameters to all collection class |
| 67 | + instances and use interfaces as types rather |
| 68 | + than specific implementations. Switch from |
| 69 | + StringBuffer to StringBuilder for internal |
| 70 | + string buffering. |
| 71 | + (XMLParser(InputStream, String, boolean, |
| 72 | + boolean, boolean, boolean, boolean, boolean, |
| 73 | + boolean, boolean, boolean, XMLReporter, |
| 74 | + XMLResolver)): Add type parameters to |
| 75 | + collection initialisation. |
| 76 | + (XMLParser(Reader, String, boolean, |
| 77 | + boolean, boolean, boolean, boolean, boolean, |
| 78 | + boolean, boolean, boolean, XMLReporter, |
| 79 | + XMLResolver)): Likewise. |
| 80 | + (getNamespaceURI(String)): Add @Override |
| 81 | + and type parameters. |
| 82 | + (getPrefix(String)): Likewise. |
| 83 | + (getPrefixes(String)): Likewise. |
| 84 | + (close()): Add @Override. |
| 85 | + (getNamespaceContext()): Likewise. |
| 86 | + (getAttributeCount()): Likewise. |
| 87 | + (getAttributeLocalName(int)): Likewise |
| 88 | + and remove unneeded casting and variable |
| 89 | + creation. |
| 90 | + (getAttributeNamespace(int)): Add @Override |
| 91 | + and remove unneeded variable creation. |
| 92 | + (getAttributePrefix(int)): Add @Override |
| 93 | + and remove unneeded casting and variable |
| 94 | + creation. |
| 95 | + (getAttributeName(int)): Add @Override and |
| 96 | + remove unneeded casting. |
| 97 | + (getAttributeType(int)): Add @Override and |
| 98 | + remove unneeded casting and variable creation. |
| 99 | + (getAttributeValue(int)): Likewise. |
| 100 | + (getAttributeValue(String,String)): Add @Override. |
| 101 | + Add for-each loop and remove unneeded casting. |
| 102 | + (getCharacterEncodingScheme()): Add @Override. |
| 103 | + (getElementText()): Likewise. Add Location instance |
| 104 | + to XMLStreamException being thrown. Handle other |
| 105 | + values of XMLStreamConstants as specified in |
| 106 | + method specification. |
| 107 | + (getEncoding()): Add @Override. |
| 108 | + (getEventType()): Likewise. |
| 109 | + (getLocalName()): Likewise. |
| 110 | + (getLocation()): Likewise. |
| 111 | + (getName()): Likewise. |
| 112 | + (getNamespaceCount()): Likewise. Avoid use of |
| 113 | + isEmpty() so Deque interface can be used for |
| 114 | + namespaces. Avoid superfluous variable creation. |
| 115 | + (getNamespacePrefix(int)): Add @Override and |
| 116 | + remove redundant casting. |
| 117 | + (getNamespaceURI()): Add @Override. |
| 118 | + (getNamespaceURI(int)): Likewise. Remove redundant |
| 119 | + casting. |
| 120 | + (getPIData()): Add @Override. |
| 121 | + (getPITarget()): Likewise. |
| 122 | + (getPrefix()): Likewise. |
| 123 | + (getProperty(String)): Likewise. |
| 124 | + (getText()): Likewise. |
| 125 | + (getTextCharacters()): Likewise. |
| 126 | + (getTextCharacters(int,char[],int,int)): Likewise. |
| 127 | + (getTextLength()): Likewise. |
| 128 | + (getTextStart()): Likewise. |
| 129 | + (getVersion(): Likewise. |
| 130 | + (hasName()): Likewise. |
| 131 | + (hasText()): Likewise. |
| 132 | + (isAttributeSpecified(int)): Likewise. Avoid |
| 133 | + redundant casting and variable creation. |
| 134 | + (isCharacters()): Add @Override. |
| 135 | + (isEndElement()): Likewise. |
| 136 | + (isStandalone()): Likewise. |
| 137 | + (isStartElement()): Likewise. |
| 138 | + (isWhiteSpace()): Likewise. |
| 139 | + (nextTag()): Likewise. |
| 140 | + (require(int,String,String)): Likewise. |
| 141 | + (standaloneSet()): Likewise. |
| 142 | + (hasNext()): Likewise. |
| 143 | + (next()): Likewise. Avoid use of isEmpty() so |
| 144 | + Deque interface can be used for namespaces) |
| 145 | + bases, startEntityStack, endEntityStack and |
| 146 | + stack. Avoid unnecessary casting. |
| 147 | + (getCurrentElement()): Remove redundant cast. |
| 148 | + (getXMLBase()): Avoid unnecessary casting |
| 149 | + and use for-each loops. |
| 150 | + (pushInput(String,String,boolean,boolean)): |
| 151 | + Likewise and drop IOException as one is not |
| 152 | + thrown. |
| 153 | + (pushInput(String,ExternalIds,boolean,boolean)): |
| 154 | + Rename ids to exIDs to avoid shadowing. Use |
| 155 | + for-each loop and avoid unnecessary casting. |
| 156 | + (pushInput(Input)): Rename input to in to |
| 157 | + avoid shadowing. |
| 158 | + (popInput()): Remove unnecessary casting. |
| 159 | + (readTextDecl()): Remove redundant cast. |
| 160 | + (readDoctypeDecl()): Rename ids to exIDs to |
| 161 | + avoid shadowing. Remove redundant else block. |
| 162 | + (readMarkupDecl(boolean)): Add default case to |
| 163 | + switch statement. |
| 164 | + (readElements(CPStringBuilder)): Mark fall-through in |
| 165 | + a way the compiler can interpret. |
| 166 | + (readAttDef(String)): Use for-each loops and interfaces |
| 167 | + for collection types. Add type parameters and remove |
| 168 | + redundant casts. |
| 169 | + (readAttType(CPStringBuilder,Set)): Use Set with |
| 170 | + type parameter instead of raw HashSet. Remove |
| 171 | + redundant else block. |
| 172 | + (readEnumeration(boolean,CPStringBuilder,Set)): |
| 173 | + Use Set with type parameter rather than raw HashSet. |
| 174 | + (readNotationType(CPStringBuilder,Set)): Likewise. |
| 175 | + (readDefault(String,String,String,String,Set)): Likewise. |
| 176 | + Remove unused defaultType variable. |
| 177 | + (readEntityDecl(boolean)): Rename ids to exIDs to avoid |
| 178 | + shadowing. |
| 179 | + (readNotationDecl(boolean)): Likewise. |
| 180 | + (readExternalIds(boolean,boolean)): Likewise. |
| 181 | + (readStartElement()): Add type parameters and for-each |
| 182 | + loops, removing redundant casts. Add default cases to |
| 183 | + switch statements. |
| 184 | + (attributeSpecified(String)): Use for-each loop and |
| 185 | + avoid redundant casts. |
| 186 | + (readAttribute(String)): Suppress warning about null |
| 187 | + pointer as an exception is thrown via the error method. |
| 188 | + Use interface types and type parameters for collections. |
| 189 | + (addNamespace(Attribute)): Use interface types and type |
| 190 | + parameters for collections. |
| 191 | + (readEndElement()): Remove redundant cast. |
| 192 | + (endElementValidationHook()): Avoid isEmpty() method so |
| 193 | + Deque interface can be used for stack. Remove redundant |
| 194 | + cast. |
| 195 | + (readCharData(String)): Avoid redundant cast. |
| 196 | + (expandEntity(String,boolean,boolean)): Rename ids to |
| 197 | + exIDs to avoid shadowing. |
| 198 | + (literalReadCh(boolean)): Avoid redundant cast. |
| 199 | + (readLiteral(int,boolean)): Likewise. |
| 200 | + (normalize(StringBuilder)): Make static and use |
| 201 | + StringBuilder rather than StringBuffer. Rename buf |
| 202 | + to buffer to avoid shadowing. |
| 203 | + (normalizeCRLF(StringBuilder)): Likewise. |
| 204 | + (expandPEReference()): Call readNmtoken with |
| 205 | + StringBuilder, not StringBuffer. |
| 206 | + (readNmtoken(boolean,StringBuilder)): Use StringBuilder |
| 207 | + rather than StringBuffer. Rename buf to buffer |
| 208 | + to avoid shadowing. |
| 209 | + (isNameStartCharacter(int,boolean)): Remove unneeded else |
| 210 | + block. |
| 211 | + (isNameCharacter(int,boolean)): Likewise. |
| 212 | + (intern(String)): Make package-private to allow access |
| 213 | + from inner class. |
| 214 | + (error(String)): Make static. |
| 215 | + (error(String,Object)): Likewise. Avoid unnecessary |
| 216 | + cast to Character as toString is available from Object. |
| 217 | + (validateStartElement(String)): Remove unneeded prefix |
| 218 | + from constants now they are part of an enum. Drop unneeded |
| 219 | + cast. Add default case to switch statement. |
| 220 | + (validateEndElement()): Likewise. |
| 221 | + (validatePCData(String)): Remove unneeded prefix from |
| 222 | + constants now they are part of an enum. Add default |
| 223 | + case to switch statement. |
| 224 | + (validateElementContent(ElementContentModel, List)): |
| 225 | + Use interface type with parameter for collection. |
| 226 | + Rename buf to buffer to avoid shadowing. Add |
| 227 | + type parameters. |
| 228 | + (createRegularExpression(ElementContentModel)): Rename |
| 229 | + buf to buffer to avoid shadowing. Use type parameters |
| 230 | + and avoid redundant casting. |
| 231 | + (validateDoctype()): Add type parameters and avoid |
| 232 | + redundant casting. Rename ids to exIDs to avoid |
| 233 | + shadowing. |
| 234 | + (Attribute.equals(Object)): Add @Override. Use |
| 235 | + isNamespaceAware() and isXML11() rather than |
| 236 | + trying to access private variables of outer class. |
| 237 | + Remove redundant else block. |
| 238 | + (Attribute.hashCode()): Implemented to match |
| 239 | + equals method. |
| 240 | + (Attribute.toString()): Add @Override. Rename |
| 241 | + buf to buffer to avoid shadowing. |
| 242 | + (Doctype): Rename externalEntities to externalEntitiesSet |
| 243 | + to avoid shadowing. |
| 244 | + (Doctype.addElementDecl(String,String,ContentModel)): |
| 245 | + Use getInputSize() rather than trying to access |
| 246 | + private variables of outer class. |
| 247 | + (Doctype.addAttributeDecl(String,String,AttributeDecl)): |
| 248 | + Add type parameters and remove redundant casts. |
| 249 | + (Doctype.addEntityDecl(String,ExternalIds,boolean)): |
| 250 | + Rename ids to exIDs to avoid shadowing. |
| 251 | + (Doctype.addNotationDecl(String,ExternalIds,boolean)): |
| 252 | + Likewise. |
| 253 | + (Doctype.getElementModel(String)): Remove redundant cast. |
| 254 | + (Doctype.getAttributeDecl(String,String)): Add type |
| 255 | + parameters and remove redundant casts. |
| 256 | + (Doctype.isAttributeDeclared(String,String)): Likewise. |
| 257 | + (Doctype.attlistIterator(String)): Likewise. |
| 258 | + (Doctype.entityIterator()): Add type parameter. |
| 259 | + (Doctype.getNotation(String)): Remove redundant cast. |
| 260 | + (Doctype.getComment(String)): Likewise. |
| 261 | + (Doctype.getPI(String)): Likewise. |
| 262 | + (Doctype.entryIterator()): Add type parameter. |
| 263 | + (ContentModel): Make static. |
| 264 | + (ContentModel.EMPTY): Removed. |
| 265 | + (ContentModel.ANY): Likewise. |
| 266 | + (ContentModel.ELEMENT): Likewise. |
| 267 | + (ContentModel.MIXED): Likewise. |
| 268 | + (ContentModel.Type): Introduce enum type with |
| 269 | + values EMPTY, ANY, ELEMENT and MIXED to replace |
| 270 | + integer constants. |
| 271 | + (ContentModel.type): Change type to ContentModel.Type. |
| 272 | + (EmptyContentModel): Make static. |
| 273 | + (EmptyContentModel.EmptyContentModel()): Initialise using |
| 274 | + enum constant. |
| 275 | + (AnyContentModel): Make static. |
| 276 | + (AnyContentModel.AnyContentModel()): Initialise using |
| 277 | + enum constant. |
| 278 | + (ElementContentModel): Make static. |
| 279 | + (ElementContentModel.ElementContentModel()): Initialise using |
| 280 | + enum constant. Add type parameters. |
| 281 | + (ContentParticle): Make static. |
| 282 | + (MixedContentModel): Likewise. |
| 283 | + (MixedContentModel.MixedContentModel()): Initialise using |
| 284 | + enum constant. Add type parameters. |
| 285 | + (AttributeDecl): Make static. |
| 286 | + (AttributeDecl.AttributeDecl(String,String,int,String,Set, |
| 287 | + boolean)): Use Set with type parameter instead of raw HashSet. |
| 288 | + (getCharacterOffset()): Add @Override. |
| 289 | + (getColumnNumber()): Likewise. |
| 290 | + (getLineNumber()): Likewise. |
| 291 | + (getPublicId()): Likewise. |
| 292 | + (getSystemId()): Likewise. |
| 293 | + (isNamespaceAware()): New package-private accessor |
| 294 | + for inner classes. |
| 295 | + (isXML11()): Likewise. |
| 296 | + (getInputSize()): Likewise. |
| 297 | + * javax/xml/parsers/SAXParser.java: |
| 298 | + (reset()): Fix documentation to refer to Java version |
| 299 | + rather than JAXP version. |
| 300 | + (getSchema()): Likewise. Suppress warnings about making |
| 301 | + this a static method. |
| 302 | + (isXIncludeAware()): Likewise. |
| 303 | + |
| 304 | +2015-03-22 Andrew John Hughes < [email protected]> |
| 305 | + |
| 306 | + * tools/gnu/classpath/tools/keytool/SelfCertCmd.java: |
| 307 | + (setDName(String,X500Principal)): Allow IOException |
| 308 | + to be thrown. |
| 309 | + |
1 | 310 | 2015-03-11 Andrew John Hughes < [email protected]>
|
2 | 311 |
|
3 | 312 | * configure.ac:
|
|
0 commit comments