growthbook / growthbook-sdk-java

The Java SDK for GrowthBook (JVM, Android)
https://docs.growthbook.io/lib/java
MIT License
8 stars 10 forks source link

Rename Context to GBContext #11

Closed tinahollygb closed 1 year ago

tinahollygb commented 1 year ago

These changes rename the Context class to GBContext. This is to avoid possible naming conflicts, considering the class name is commonly used in some Java frameworks, e.g. Android. While developers could use the fully-qualified package path instead of importing the class, e.g. growthbook.sdk.java.models.Context context = growthbook.sdk.java.models.Context.builder().build(); it would be less verbose to import the class under a different name and write GBContext context = GBContext.builder().build();