3030import com .helger .base .tostring .ToStringGenerator ;
3131
3232/**
33- * Defines the source location of an object when reading CSS from a stream. It
34- * consists of the position of the start token and the position of the end
35- * token.
33+ * Defines the source location of an object when reading CSS from a stream. It consists of the
34+ * position of the start token and the position of the end token.
3635 *
3736 * @author Philip Helger
3837 */
@@ -46,11 +45,11 @@ public class CSSSourceLocation
4645 * Constructor.
4746 *
4847 * @param aFirstTokenArea
49- * Area of the first token. May be <code>null</code> if the last token
50- * area is not <code>null</code>.
48+ * Area of the first token. May be <code>null</code> if the last token area is not
49+ * <code>null</code>.
5150 * @param aLastTokenArea
52- * Area of the last token. May be <code>null</code> if the first token
53- * area is not <code>null</code>.
51+ * Area of the last token. May be <code>null</code> if the first token area is not
52+ * <code>null</code>.
5453 * @throws IllegalArgumentException
5554 * if both areas are <code>null</code>.
5655 */
@@ -62,8 +61,8 @@ public CSSSourceLocation (@Nullable final CSSSourceArea aFirstTokenArea, @Nullab
6261 }
6362
6463 /**
65- * @return The area of the first token. May be <code>null</code> if no such
66- * information is available.
64+ * @return The area of the first token. May be <code>null</code> if no such information is
65+ * available.
6766 */
6867 @ Nullable
6968 public CSSSourceArea getFirstTokenArea ()
@@ -80,8 +79,8 @@ public boolean hasFirstTokenArea ()
8079 }
8180
8281 /**
83- * @return The line number where the first token begins (incl.). May be -1 if
84- * not such token is available.
82+ * @return The line number where the first token begins (incl.). May be -1 if not such token is
83+ * available.
8584 */
8685 @ CheckForSigned
8786 public int getFirstTokenBeginLineNumber ()
@@ -90,8 +89,8 @@ public int getFirstTokenBeginLineNumber ()
9089 }
9190
9291 /**
93- * @return The column number where the first token begins (incl.). May be -1
94- * if not such token is available.
92+ * @return The column number where the first token begins (incl.). May be -1 if not such token is
93+ * available.
9594 */
9695 @ CheckForSigned
9796 public int getFirstTokenBeginColumnNumber ()
@@ -100,8 +99,8 @@ public int getFirstTokenBeginColumnNumber ()
10099 }
101100
102101 /**
103- * @return The line number where the fist token ends (incl.). May be -1 if not
104- * such token is available.
102+ * @return The line number where the fist token ends (incl.). May be -1 if not such token is
103+ * available.
105104 */
106105 @ CheckForSigned
107106 public int getFirstTokenEndLineNumber ()
@@ -110,8 +109,8 @@ public int getFirstTokenEndLineNumber ()
110109 }
111110
112111 /**
113- * @return The column number where the first token ends (incl.). May be -1 if
114- * not such token is available.
112+ * @return The column number where the first token ends (incl.). May be -1 if not such token is
113+ * available.
115114 */
116115 @ CheckForSigned
117116 public int getFirstTokenEndColumnNumber ()
@@ -120,8 +119,8 @@ public int getFirstTokenEndColumnNumber ()
120119 }
121120
122121 /**
123- * @return The area of the last token. May be <code>null</code> if no such
124- * information is available.
122+ * @return The area of the last token. May be <code>null</code> if no such information is
123+ * available.
125124 */
126125 @ Nullable
127126 public CSSSourceArea getLastTokenArea ()
@@ -138,8 +137,8 @@ public boolean hasLastTokenArea ()
138137 }
139138
140139 /**
141- * @return The line number where the last token begins (incl.). May be -1 if
142- * not such token is available.
140+ * @return The line number where the last token begins (incl.). May be -1 if not such token is
141+ * available.
143142 */
144143 @ CheckForSigned
145144 public int getLastTokenBeginLineNumber ()
@@ -148,8 +147,8 @@ public int getLastTokenBeginLineNumber ()
148147 }
149148
150149 /**
151- * @return The column number where the last token begins (incl.). May be -1 if
152- * not such token is available.
150+ * @return The column number where the last token begins (incl.). May be -1 if not such token is
151+ * available.
153152 */
154153 @ CheckForSigned
155154 public int getLastTokenBeginColumnNumber ()
@@ -158,8 +157,8 @@ public int getLastTokenBeginColumnNumber ()
158157 }
159158
160159 /**
161- * @return The line number where the fist token ends (incl.). May be -1 if not
162- * such token is available.
160+ * @return The line number where the fist token ends (incl.). May be -1 if not such token is
161+ * available.
163162 */
164163 @ CheckForSigned
165164 public int getLastTokenEndLineNumber ()
@@ -168,8 +167,8 @@ public int getLastTokenEndLineNumber ()
168167 }
169168
170169 /**
171- * @return The column number where the last token ends (incl.). May be -1 if
172- * not such token is available.
170+ * @return The column number where the last token ends (incl.). May be -1 if not such token is
171+ * available.
173172 */
174173 @ CheckForSigned
175174 public int getLastTokenEndColumnNumber ()
@@ -178,8 +177,7 @@ public int getLastTokenEndColumnNumber ()
178177 }
179178
180179 /**
181- * @return The location of the first token as a simple string. May be
182- * <code>null</code>.
180+ * @return The location of the first token as a simple string. May be <code>null</code>.
183181 */
184182 @ Nullable
185183 public String getFirstTokenLocationAsString ()
@@ -188,8 +186,7 @@ public String getFirstTokenLocationAsString ()
188186 }
189187
190188 /**
191- * @return The location of the last token as a simple string. May be
192- * <code>null</code>.
189+ * @return The location of the last token as a simple string. May be <code>null</code>.
193190 */
194191 @ Nullable
195192 public String getLastTokenLocationAsString ()
@@ -214,7 +211,8 @@ public boolean equals (final Object o)
214211 if (o == null || !getClass ().equals (o .getClass ()))
215212 return false ;
216213 final CSSSourceLocation rhs = (CSSSourceLocation ) o ;
217- return EqualsHelper .equals (m_aFirstTokenArea , rhs .m_aFirstTokenArea ) && EqualsHelper .equals (m_aLastTokenArea , rhs .m_aLastTokenArea );
214+ return EqualsHelper .equals (m_aFirstTokenArea , rhs .m_aFirstTokenArea ) &&
215+ EqualsHelper .equals (m_aLastTokenArea , rhs .m_aLastTokenArea );
218216 }
219217
220218 @ Override
0 commit comments