Created
February 14, 2014 02:57
-
-
Save MinCha/8995040 to your computer and use it in GitHub Desktop.
Tell, Don`t Ask #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ReadOnlyNotifier { | |
public List<String> getRelatedServices() { | |
return null; | |
} | |
public boolean notifyToRelatedServices(StopMessage stopMessage) { | |
return false; | |
} | |
} | |
if (readOnlyNotifier.getRelatedServices().size() > 0) { | |
if (readOnlyNotifier.notifyToRelatedServices(stopMessage) == false) { | |
throw new FailedReadOnlyNotificationException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment