mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2995 - Change DatabaseConfig.getClasses() to return a Set
The thinking is that it is safer to make this API change rather than to return a shallow copy which you won't be able to detect.
This commit is contained in:
@@ -2395,10 +2395,13 @@ public class DatabaseConfig {
|
||||
|
||||
/**
|
||||
* Deprecated - migrate to classes().
|
||||
* <p>
|
||||
* Sorry if returning Set rather than List breaks code but it feels safer to
|
||||
* do that than a subtle change to return a shallow copy which you will not detect.
|
||||
*/
|
||||
@Deprecated
|
||||
public List<Class<?>> getClasses() {
|
||||
return new ArrayList<>(classes);
|
||||
public Set<Class<?>> getClasses() {
|
||||
return classes;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user