Skip to content

Commit

Permalink
Remove obsolete double spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mkordas authored and romani committed Mar 10, 2015
1 parent aef1f36 commit 49a2375
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion RIGHTS.antlr
Expand Up @@ -3,7 +3,7 @@ SOFTWARE RIGHTS
$Id: RIGHTS.antlr,v 1.1 2001-06-22 13:11:01 oburn Exp $

ANTLR 1989-2000 Developed by jGuru.com (MageLang Institute),
http://www.ANTLR.org and http://www.jGuru.com
http://www.ANTLR.org and http://www.jGuru.com

We reserve no legal rights to the ANTLR--it is fully in the
public domain. An individual or company may do whatever
Expand Down
Expand Up @@ -432,7 +432,7 @@ private Configuration getConfiguration()
* @param value The string to be scanned for property references.
* May be <code>null</code>, in which case this
* method returns immediately with no effect.
* @param props Mapping (String to String) of property names to their
* @param props Mapping (String to String) of property names to their
* values. Must not be <code>null</code>.
* @param defaultValue default to use if one of the properties in value
* cannot be resolved from props.
Expand Down
Expand Up @@ -249,15 +249,15 @@ protected LexicalFrame(LexicalFrame parent)
}

/** add a name to the frame.
* @param nameToAdd the name we're adding
* @param nameToAdd the name we're adding
*/
void addName(String nameToAdd)
{
varNames.add(nameToAdd);
}

/** check whether the frame contains a given name.
* @param nameToFind the name we're looking for
* @param nameToFind the name we're looking for
* @return whether it was found
*/
boolean contains(String nameToFind)
Expand All @@ -266,7 +266,7 @@ boolean contains(String nameToFind)
}

/** check whether the frame contains a given name.
* @param nameToFind the name we're looking for
* @param nameToFind the name we're looking for
* @return whether it was found
*/
LexicalFrame getIfContains(String nameToFind)
Expand Down
Expand Up @@ -189,7 +189,7 @@ public class DescendantTokenCheck extends Check
*/
public static final String MSG_KEY_SUM_MAX = "descendant.token.sum.max";

/** minimum depth */
/** minimum depth */
private int minimumDepth;
/** maximum depth */
private int maximumDepth = Integer.MAX_VALUE;
Expand Down
Expand Up @@ -46,7 +46,7 @@
*
* <p>
* Using the COMPACT style is less verbose. This style can only
* be used when there is an element called 'value' which is either
* be used when there is an element called 'value' which is either
* the sole element or all other elements have default valuess.
*
*
Expand All @@ -72,7 +72,7 @@
* Annotations also allow you to specify arrays of elements in a standard
* format. As with normal arrays, a trailing comma is optional. To always
* require a trailing comma use the {@link TrailingArrayComma#ALWAYS ALWAYS}
* type. To never have a trailing comma use the
* type. To never have a trailing comma use the
* {@link TrailingArrayComma#NEVER NEVER} type. To not enforce a trailing
* array comma preference a {@link TrailingArrayComma#IGNORE IGNORE} type
* is provided. Set this through the <code>trailingArrayComma</code> property.
Expand Down
Expand Up @@ -27,7 +27,7 @@
* <p>
* Checks the placement of left curly braces on types, methods and
* other blocks:
* {@link TokenTypes#LITERAL_CATCH LITERAL_CATCH}, {@link
* {@link TokenTypes#LITERAL_CATCH LITERAL_CATCH}, {@link
* TokenTypes#LITERAL_DO LITERAL_DO}, {@link TokenTypes#LITERAL_ELSE
* LITERAL_ELSE}, {@link TokenTypes#LITERAL_FINALLY LITERAL_FINALLY}, {@link
* TokenTypes#LITERAL_FOR LITERAL_FOR}, {@link TokenTypes#LITERAL_IF
Expand Down
Expand Up @@ -125,7 +125,7 @@
* @see java.lang.Cloneable
* @see java.lang.CloneNotSupportedException
*/
public class NoCloneCheck extends AbstractIllegalMethodCheck
public class NoCloneCheck extends AbstractIllegalMethodCheck
{

/**
Expand Down
Expand Up @@ -34,7 +34,7 @@
* <LI>if curlys aren't present, then template method to get expressions
* is called</LI>
* <LI>now all the repetitous code which checks for BOL, if curlys are on
* same line, etc. can be collapsed into the superclass</LI>
* same line, etc. can be collapsed into the superclass</LI>
* </UL>
*
*
Expand Down
Expand Up @@ -91,7 +91,7 @@ protected final boolean mustCheckName(DetailAST ast)
|| (ScopeUtils.inInterfaceOrAnnotationBlock(ast)
&& !ScopeUtils.inCodeBlock(ast)))
{
// Handle the serialVersionUID and serialPersistentFields constants
// Handle the serialVersionUID and serialPersistentFields constants
// which are used for Serialization. Cannot enforce rules on it. :-)
final DetailAST nameAST = ast.findFirstToken(TokenTypes.IDENT);
if ((nameAST != null)
Expand Down
Expand Up @@ -134,7 +134,7 @@ protected final boolean mustCheckName(DetailAST ast)
private boolean isForLoopVariable(DetailAST variableDef)
{
final int parentType = variableDef.getParent().getType();
return parentType == TokenTypes.FOR_INIT
return parentType == TokenTypes.FOR_INIT
|| parentType == TokenTypes.FOR_EACH_CLAUSE;
}
}
Expand Up @@ -26,7 +26,7 @@
* <p>Checks the padding of parentheses; that is whether a space is required
* after a left parenthesis and before a right parenthesis, or such spaces are
* forbidden, with the exception that it does
* not check for padding of the right parenthesis at an empty for iterator.
* not check for padding of the right parenthesis at an empty for iterator.
* Use Check {@link EmptyForIteratorPadCheck EmptyForIteratorPad} to validate
* empty for iterators.
* </p>
Expand Down
Expand Up @@ -14,4 +14,4 @@ mutable.exception = ''{0}'' alanı ''final'' olarak tanımlanmalı.

throws.count = Kullanılan ''throws'' sayısı {0,number,integer} (maksimum izin verilen sayı {1,number,integer}).

variable.notPrivate = ''{0}'' değişkeni ''private'' olarak tanımlanmalı ve erişim metotlarına(getter/setter) sahip olmalı.
variable.notPrivate = ''{0}'' değişkeni ''private'' olarak tanımlanmalı ve erişim metotlarına(getter/setter) sahip olmalı.
Expand Up @@ -40,7 +40,7 @@ public void testTags()
{
final String[] text = {
"/** @see elsewhere ",
" * {@link List }, {@link List link text }",
" * {@link List }, {@link List link text }",
" {@link List#add(Object) link text}",
" * {@link Class link text}",
};
Expand Down Expand Up @@ -70,7 +70,7 @@ public void testTagType()
public void testInlineTagLinkText()
{
final String[] text = {
"/** {@link List link text }",
"/** {@link List link text }",
};
final Comment comment = new Comment(text, 1, 1, text[0].length());
final List<JavadocTag> tags = JavadocUtils.getJavadocTags(
Expand All @@ -82,7 +82,7 @@ public void testInlineTagLinkText()
public void testInlineTagMethodRef()
{
final String[] text = {
"/** {@link List#add(Object)}",
"/** {@link List#add(Object)}",
};
final Comment comment = new Comment(text, 1, 1, text[0].length());
final List<JavadocTag> tags = JavadocUtils.getJavadocTags(
Expand Down
Expand Up @@ -2,7 +2,7 @@

/**
*
* @author IljaDubinin
* @author IljaDubinin
*/
public class NewHandlerTestInput
{
Expand Down
Expand Up @@ -6,7 +6,7 @@
package com.puppycrawl.tools.checkstyle;

/**
* Testing author and version tag patterns
* Testing author and version tag patterns
**** @author Oliver Burn
* @version 1.0
*/
Expand All @@ -15,7 +15,7 @@ class InputJavadoc
}

/**
* Testing author and version tag patterns (there are not tags :)
* Testing author and version tag patterns (there are not tags :)
* SomeText @author Oliver Burn
* *@version 1.0
*/
Expand All @@ -24,7 +24,7 @@ class InputJavadoc1
}

/**
* Testing author and version tag patterns.
* Testing author and version tag patterns.
* tags are multi line ones
* @author Oliver Burn
* @version 1.0 */
Expand All @@ -42,7 +42,7 @@ class InputJavadocType
}

/**
* Testing author and version tag patterns
* Testing author and version tag patterns
**** @author Oliver Burn
* @version 1.0
*/
Expand All @@ -51,7 +51,7 @@ enum InputJavadocEnum
}

/**
* Testing author and version tag patterns (there are not tags :)
* Testing author and version tag patterns (there are not tags :)
* SomeText @author Oliver Burn
* *@version 1.0
*/
Expand All @@ -60,7 +60,7 @@ enum InputJavadocEnum1
}

/**
* Testing author and version tag patterns.
* Testing author and version tag patterns.
* tags are multi line ones
* @author Oliver Burn
* @version 1.0 */
Expand All @@ -78,7 +78,7 @@ enum InputJavadocEnum2
}

/**
* Testing author and version tag patterns
* Testing author and version tag patterns
**** @author Oliver Burn
* @version 1.0
*/
Expand All @@ -87,7 +87,7 @@ enum InputJavadocEnum2
}

/**
* Testing author and version tag patterns (there are not tags :)
* Testing author and version tag patterns (there are not tags :)
* SomeText @author Oliver Burn
* *@version 1.0
*/
Expand All @@ -96,7 +96,7 @@ enum InputJavadocEnum2
}

/**
* Testing author and version tag patterns.
* Testing author and version tag patterns.
* tags are multi line ones
* @author Oliver Burn
* @version 1.0 */
Expand Down
Expand Up @@ -181,14 +181,14 @@ void rfe521323()
}


/** bug 806243 (NoWhitespaceBeforeCheck error for anonymous inner class) */
/** bug 806243 (NoWhitespaceBeforeCheck error for anonymous inner class) */
private int i ;
// ^ whitespace
private int i1, i2, i3 ;
// ^ whitespace
private int i4, i5, i6;

/** bug 806243 (NoWhitespaceBeforeCheck error for anonymous inner class) */
/** bug 806243 (NoWhitespaceBeforeCheck error for anonymous inner class) */
void bug806243()
{
Object o = new InputWhitespace() {
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.coding;
package com.puppycrawl.tools.checkstyle.coding;

public class InputReturnFromCatchCheck {
public void foo() {
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.coding;
package com.puppycrawl.tools.checkstyle.coding;

public class InputReturnFromFinallyCheck {
public void foo() {
Expand Down
Expand Up @@ -103,7 +103,7 @@ public void render() {}
* First is a class with a method with arguments {@link TestClass1#method1(TestClass2)}.
* Next is a class with typed method {@link TestClass3#method2(TestClass4, TestClass5)}.
*
* @param param1 with a link {@link TestClass6}
* @param param1 with a link {@link TestClass6}
* @throws TestClass7 when broken
* @deprecated in 1 for removal in 2. Use {@link TestClass8}
*/
Expand Down
Expand Up @@ -103,7 +103,7 @@ public void render() {}
* First is a class with a method with arguments {@link TestClass1#method1(TestClass2)}.
* Next is a class with typed method {@link TestClass3#method2(TestClass4, TestClass5)}.
*
* @param param1 with a link {@link TestClass6}
* @param param1 with a link {@link TestClass6}
* @throws TestClass7 when broken
* @deprecated in 1 for removal in 2. Use {@link TestClass8}
*/
Expand Down
Expand Up @@ -103,7 +103,7 @@ public void render() {}
* First is a class with a method with arguments {@link TestClass1#method1(TestClass2)}.
* Next is a class with typed method {@link TestClass3#method2(TestClass4, TestClass5)}.
*
* @param param1 with a link {@link TestClass6}
* @param param1 with a link {@link TestClass6}
* @throws TestClass7 when broken
* @deprecated in 1 for removal in 2. Use {@link TestClass8}
*/
Expand Down
Expand Up @@ -103,7 +103,7 @@ public void render() {}
* First is a class with a method with arguments {@link TestClass1#method1(TestClass2)}.
* Next is a class with typed method {@link TestClass3#method2(TestClass4, TestClass5)}.
*
* @param param1 with a link {@link TestClass6}
* @param param1 with a link {@link TestClass6}
* @throws TestClass7 when broken
* @deprecated in 1 for removal in 2. Use {@link TestClass8}
*/
Expand Down
Expand Up @@ -102,7 +102,7 @@ public void render() {}
* First is a class with a method with arguments {@link Checker#method1(CheckerTest)}.
* Next is a class with typed method {@link BaseFileSetCheckTestSupport#method2(Defn, Input15Extensions)}.
*
* @param param1 with a link {@link ConfigurationLoaderTest}
* @param param1 with a link {@link ConfigurationLoaderTest}
* @throws CheckStyleTask when broken
* @deprecated in 1 for removal in 2. Use {@link DefaultConfiguration}
*/
Expand Down
Expand Up @@ -107,7 +107,7 @@ public void emptyIfTest() //indent:4 exp:4
} //indent:4 exp:4

///// same as above, with statements //indent:4 exp:4
public void populatedIfTest() //indent:4 exp:4
public void populatedIfTest() //indent:4 exp:4
{ //indent:4 exp:4
boolean test = false; //indent:8 exp:8
// no braces if //indent:8 exp:8
Expand Down Expand Up @@ -233,7 +233,7 @@ else if (8 < 9) //indent:8 exp:8
System.getProperty("blah"); } //indent:12 exp:8 warn
} //indent:4 exp:4

public void parenIfTest() { //indent:4 exp:4
public void parenIfTest() { //indent:4 exp:4
boolean test = true; //indent:8 exp:8

if (test //indent:8 exp:8
Expand Down
Expand Up @@ -8,7 +8,7 @@

/**
*
* @author jrichard
* @author jrichard
*/
public class InputValidBinaryOpIndent { //indent:0 exp:0

Expand Down
Expand Up @@ -78,7 +78,7 @@ public void emptyIfTest() //indent:4 exp:4
} //indent:4 exp:4

///// same as above, with statements //indent:4 exp:4
public void populatedIfTest() //indent:4 exp:4
public void populatedIfTest() //indent:4 exp:4
{ //indent:4 exp:4
boolean test = false; //indent:8 exp:8
// no braces if //indent:8 exp:8
Expand Down Expand Up @@ -213,7 +213,7 @@ else if (8 < 9) //indent:8 exp:8

} //indent:4 exp:4

public void parenIfTest() { //indent:4 exp:4
public void parenIfTest() { //indent:4 exp:4
boolean test = true; //indent:8 exp:8

if (test //indent:8 exp:8
Expand Down
2 changes: 1 addition & 1 deletion src/xdocs/availablechecks.xml
Expand Up @@ -579,7 +579,7 @@
<td>Checks the padding of parentheses; that is whether a space is required
after a left parenthesis and before a right parenthesis, or such spaces are
forbidden, with the exception that it does
not check for padding of the right parenthesis at an empty for iterator.</td>
not check for padding of the right parenthesis at an empty for iterator.</td>
</tr>
<tr>
<td><a href="config_imports.html#RedundantImport">RedundantImport</a></td>
Expand Down

0 comments on commit 49a2375

Please sign in to comment.