Skip to content

Commit

Permalink
Functionality-preserving restructure of newtypes.JSType.
Browse files Browse the repository at this point in the history
Move subclasses into nested classes so that the classes, shared constants, and constructors can all be locked down as private.  Mark all non-overridden methods as final so that behavior is more obvious.  Now it can be immediately seen from looking at the class that it is effectively a "closed union" type.  Also adds some missing Javadoc.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=152979397
  • Loading branch information
shicks authored and brad4d committed Apr 13, 2017
1 parent 91500d4 commit 8052d61
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 253 deletions.

0 comments on commit 8052d61

Please sign in to comment.