natObject.cc (_Jv_MonitorEnter): Only perform null check when we have to.

2000-04-08  Anthony Green  <green@redhat.com>

	* java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
	check when we have to.

	* gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
	x) as `inline'.

	* java/util/StringTokenizer.java: Minor optimization.  Eliminates
	one method call.

	* java/util/Vector.java (VectorEnumeration.nextElement): Manually
	inline hasMoreElements.

From-SVN: r33033
This commit is contained in:
Anthony Green 2000-04-09 01:26:20 +00:00 committed by Anthony Green
parent 6308dae99a
commit 3bd835f73f
5 changed files with 21 additions and 4 deletions

View file

@ -180,6 +180,6 @@ public class StringTokenizer implements Enumeration
// more readable this way, so we'll take the hit on efficiency.
private boolean isDelimiter(char ch)
{
return delimiters.indexOf(ch) >= 0;
return delimiters.indexOf(ch, 0) >= 0;
}
}