Revision: 1301
Author: mcculls
Date: Thu Oct 21 14:22:23 2010
Log: Current build targets Java5 but String.isEmpty() is Java6 only, so
change this check to use String.length() instead
http://code.google.com/p/google-guice/source/detail?r=1301
Modified:
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
=======================================
---
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
Sun Sep 12 10:04:50 2010
+++
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
Thu Oct 21 14:22:23 2010
@@ -46,7 +46,7 @@
private final String jpaUnit;
public JpaPersistModule(String jpaUnit) {
- Preconditions.checkArgument(null != jpaUnit && !jpaUnit.isEmpty(),
+ Preconditions.checkArgument(null != jpaUnit && jpaUnit.length() > 0,
"JPA unit name must be a non-empty string.");
this.jpaUnit = jpaUnit;
}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.