@@ -193,7 +193,9 @@ public boolean isStableNumber() {
193
193
* @return true of the passed in class is the exact same class as this class.
194
194
*/
195
195
protected final boolean isSameClass (final Expression expr ) {
196
- if (null == expr ) return false ;
196
+ if (null == expr ) {
197
+ return false ;
198
+ }
197
199
198
200
return getClass () == expr .getClass ();
199
201
}
@@ -246,7 +248,9 @@ public void error(final XPathContext xctxt, final String msg, final Object[] arg
246
248
*/
247
249
public ExpressionNode getExpressionOwner () {
248
250
ExpressionNode parent = exprGetParent ();
249
- while ((null != parent ) && (parent instanceof Expression )) parent = parent .exprGetParent ();
251
+ while ((null != parent ) && (parent instanceof Expression )) {
252
+ parent = parent .exprGetParent ();
253
+ }
250
254
return parent ;
251
255
}
252
256
@@ -268,28 +272,36 @@ public ExpressionNode exprGetParent() {
268
272
/** {@inheritDoc} */
269
273
@ Override
270
274
public String getPublicId () {
271
- if (null == m_parent ) return null ;
275
+ if (null == m_parent ) {
276
+ return null ;
277
+ }
272
278
return m_parent .getPublicId ();
273
279
}
274
280
275
281
/** {@inheritDoc} */
276
282
@ Override
277
283
public String getSystemId () {
278
- if (null == m_parent ) return null ;
284
+ if (null == m_parent ) {
285
+ return null ;
286
+ }
279
287
return m_parent .getSystemId ();
280
288
}
281
289
282
290
/** {@inheritDoc} */
283
291
@ Override
284
292
public int getLineNumber () {
285
- if (null == m_parent ) return 0 ;
293
+ if (null == m_parent ) {
294
+ return 0 ;
295
+ }
286
296
return m_parent .getLineNumber ();
287
297
}
288
298
289
299
/** {@inheritDoc} */
290
300
@ Override
291
301
public int getColumnNumber () {
292
- if (null == m_parent ) return 0 ;
302
+ if (null == m_parent ) {
303
+ return 0 ;
304
+ }
293
305
return m_parent .getColumnNumber ();
294
306
}
295
307
}
0 commit comments