Add Java annotation to code blocks in README files

This commit is contained in:
Wes Gilleland
2018-03-28 01:35:43 -04:00
parent 6879990857
commit 86ee59c232
13 changed files with 49 additions and 45 deletions

View File

@ -32,7 +32,7 @@ Wikipedia says
Taking our goldmine example from above. Here we have the dwarven mine worker hierarchy
```
```java
public abstract class DwarvenMineWorker {
private static final Logger LOGGER = LoggerFactory.getLogger(DwarvenMineWorker.class);
@ -140,7 +140,7 @@ public class DwarvenCartOperator extends DwarvenMineWorker {
To operate all these goldmine workers we have the facade
```
```java
public class DwarvenGoldmineFacade {
private final List<DwarvenMineWorker> workers;
@ -175,7 +175,7 @@ public class DwarvenGoldmineFacade {
Now to use the facade
```
```java
DwarvenGoldmineFacade facade = new DwarvenGoldmineFacade();
facade.startNewDay();
// Dwarf gold digger wakes up.