Skip to content

Commit 2df9c4d

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of ant/org.eclipse.ant.ui
1 parent e840179 commit 2df9c4d

File tree

239 files changed

+1177
-1117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+1177
-1117
lines changed

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/AntDTDMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
t https://www.eclipse.org/legal/epl-2.0/
77
t
88
t SPDX-License-Identifier: EPL-2.0
9-
*
10-
* Contributors:
9+
*
10+
* Contributors:
1111
* IBM - Initial API and implementation
1212
**********************************************************************/
1313
package org.eclipse.ant.internal.ui.dtd;

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/IAtom.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
1414
package org.eclipse.ant.internal.ui.dtd;
1515

1616
/**
1717
* Schema atom interface.
18-
*
18+
*
1919
* @author Bob Foster
2020
*/
2121
public interface IAtom {

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/IAttribute.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
1414
package org.eclipse.ant.internal.ui.dtd;
1515

1616
/**
1717
* Schema attribute interface.
18-
*
18+
*
1919
* @author Bob Foster
2020
*/
2121
public interface IAttribute extends IAtom {
@@ -39,7 +39,7 @@ public interface IAttribute extends IAtom {
3939
public String getType();
4040

4141
/**
42-
*
42+
*
4343
* @return String[] or null if type is not "NOTATION" or "ENUMERATION".
4444
*/
4545
public String[] getEnum();

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/IDfm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
1414
package org.eclipse.ant.internal.ui.dtd;
1515

1616
/**
1717
* A Dfm is an IModel converted to a form more appropriate for validation. The whole point of a Dfm is to run fast.
18-
*
18+
*
1919
* @author Bob Foster
2020
*/
2121
public interface IDfm {

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/IElement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2013 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
* IBM Corporation - fix for Bug 40951
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* IElement interface.
21-
*
21+
*
2222
* @author Bob Foster
2323
*/
2424
public interface IElement extends IAtom {

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/IModel.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* Content model. This is the printable version of the model. The walkable version is the IDfm.
20-
*
20+
*
2121
* @author Bob Foster
2222
*/
2323
public interface IModel {
@@ -71,7 +71,7 @@ public interface IModel {
7171

7272
/**
7373
* Convert the model to an Nfm on demand.
74-
*
74+
*
7575
* @return Nfm
7676
*/
7777
public Nfm toNfm();

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/ISchema.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
@@ -17,7 +17,7 @@ public interface ISchema {
1717

1818
/**
1919
* Find element by name.
20-
*
20+
*
2121
* @param qname
2222
* Element name.
2323
* @return element or null if no such element.

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/ParseError.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
* IBM Corporation - serial version id
@@ -23,7 +23,7 @@ public class ParseError extends Exception {
2323

2424
/**
2525
* Constructor for ParseError.
26-
*
26+
*
2727
* @param msg
2828
* Message
2929
*/
@@ -33,7 +33,7 @@ public ParseError(String msg) {
3333

3434
/**
3535
* Constructor for ParseError.
36-
*
36+
*
3737
* @param msg
3838
* Message
3939
* @param cause

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/Parser.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2005 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
*******************************************************************************/
@@ -31,15 +31,15 @@
3131

3232
/**
3333
* Simple parser for DTDs. Returns ISchema representing the DTD.
34-
*
34+
*
3535
* To parse a DTD, you must parse an XML document. The <code>parseDTD()</code> method builds a temporary XML document in memory that refers to or
3636
* includes the DTD.
37-
*
37+
*
3838
* There is no dependency in this package on any code outside the package except XMLReader.
39-
*
39+
*
4040
* To hide the underlying parser, XML parser exceptions are wrapped by a ParseError. Unless debugging, the two string constants are sufficient to
4141
* determine the cause of the error.
42-
*
42+
*
4343
* @author Bob Foster
4444
*/
4545
public class Parser {
@@ -56,7 +56,7 @@ public class Parser {
5656
/**
5757
* Parse the XML document at the input source and return a document walker that can be used to validate any document with the same DTD (internal
5858
* and external) or provide user assistance for this document.
59-
*
59+
*
6060
* @param inputSource
6161
* Source for XML document to start DTD parse. Must contain a DOCTYPE declaration with internal or external subset, or both.
6262
* @param entityResolver
@@ -112,7 +112,7 @@ private XMLReader getXMLReader() throws ParseError {
112112
/**
113113
* Parse the XML document at the argument URL and return a document walker that can be used to validate any document with the same DTD (internal
114114
* and external) or provide user assistance for this document.
115-
*
115+
*
116116
* @param url
117117
* Of XML document to start DTD parse. Must contain a DOCTYPE declaration with internal or external subset, or both.
118118
* @return IWalker that can be used to traverse document.
@@ -126,7 +126,7 @@ public ISchema parse(String url) throws ParseError, IOException {
126126
/**
127127
* Parse the XML document using the argument reader and return a document walker that can be used to validate any document with the same DTD
128128
* (internal and external) or provide user assistance for this document.
129-
*
129+
*
130130
* @param reader
131131
* Reader for XML document to start DTD parse. Must contain a DOCTYPE declaration with internal or external subset, or both.
132132
* @return IWalker that can be used to traverse document.
@@ -140,7 +140,7 @@ public ISchema parse(Reader reader) throws ParseError, IOException {
140140
/**
141141
* Parse the DTD with the given public and system ids and return a document walker that can be used to validate or provide user assistance for any
142142
* document with the same external DTD and no internal subset.
143-
*
143+
*
144144
* @param pub
145145
* PUBLIC id of DTD.
146146
* @param sys
@@ -158,7 +158,7 @@ public ISchema parseDTD(String pub, String sys, String root) throws ParseError,
158158
/**
159159
* Parse the DTD from the reader and return a document walker that can be used to validate or provide user assistance for any document with the
160160
* same external DTD and no internal subset.
161-
*
161+
*
162162
* @param reader
163163
* Reader for external subset DTD
164164
* @param root
@@ -199,8 +199,9 @@ public DTDEntityResolver(Reader reader) {
199199

200200
@Override
201201
public InputSource resolveEntity(String publicId, String systemId) {
202-
if (publicId.equals(INTERNAL) && systemId.equals(INTERNAL))
202+
if (publicId.equals(INTERNAL) && systemId.equals(INTERNAL)) {
203203
return new InputSource(reader);
204+
}
204205
return null;
205206
}
206207
}

ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/dtd/schema/AntDTDSchemaMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
t https://www.eclipse.org/legal/epl-2.0/
77
t
88
t SPDX-License-Identifier: EPL-2.0
9-
*
10-
* Contributors:
9+
*
10+
* Contributors:
1111
* IBM - Initial API and implementation
1212
**********************************************************************/
1313
package org.eclipse.ant.internal.ui.dtd.schema;

0 commit comments

Comments
 (0)