Commit 3a8e56b946379b7746840530a01ecad8bf948a71
1 parent
6d5f9647
update...
Showing
1 changed file
with
1 additions
and
2 deletions
src/main/java/com/bsth/data/Station2ParkBuffer.java
| ... | ... | @@ -28,14 +28,13 @@ public class Station2ParkBuffer implements CommandLineRunner { |
| 28 | 28 | |
| 29 | 29 | private static ArrayListMultimap listMultimap; |
| 30 | 30 | |
| 31 | - private static Set<StationToPark> pstBuff; | |
| 31 | + private static Set<StationToPark> pstBuff = new HashSet<>(); | |
| 32 | 32 | |
| 33 | 33 | static Logger log = LoggerFactory.getLogger(Station2ParkBuffer.class); |
| 34 | 34 | |
| 35 | 35 | @Override |
| 36 | 36 | public void run(String... strings) throws Exception { |
| 37 | 37 | listMultimap = ArrayListMultimap.create(); |
| 38 | - pstBuff = new HashSet<>(); | |
| 39 | 38 | Iterator<StationToPark> iterator = stationToParkRepository.findAll().iterator(); |
| 40 | 39 | StationToPark stp; |
| 41 | 40 | while (iterator.hasNext()) { | ... | ... |