Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static void assertTrue() {
  2. ...
  3. }
  4.  
  5. Assert.assertTrue(condition); //Should look like this.
  6. assertTrue(condition); //But in fact it looks like this.
  7.  
  8. public static class Logger() {
  9. public static void log() {
  10. ...
  11. }
  12. }
  13.  
  14. Logger.log(someMessage); //Not cool
  15. log(someMessage); //cool!
  16.  
  17. import static some.packages.Assert.assertTrue;
  18. // or
  19. import static some.packages.Assert.*;
  20.  
  21. import static whatever.packages.your.logger.is.in.Logger.log;
Add Comment
Please, Sign In to add comment