google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Misleading parameter naming for startsWith/endsWith/contains #306

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1.0 trunk - interfaces use misleading parameter names (the implementation is 
fine)

com.google.code.morphia.query.FieldEnd.java
        T contains(String string);
        T containsIgnoreCase(String suffix); <= should be "string"

com.google.code.morphia.query.QueryFieldEnd.java
        Query<T> startsWith(String prefix);
        Query<T> startsWithIgnoreCase(String string); <= "prefix"
        Query<T> endsWith(String prefix); <= "suffix"
        Query<T> endsWithIgnoreCase(String string); <= "suffix"
        Query<T> contains(String prefix); <= "string"
        Query<T> containsIgnoreCase(String string);

Original issue reported on code.google.com by jo...@publishthis.com on 2 Aug 2011 at 7:02