I used IntelliJ for the "Inspect Code", and one of its results:
Overview of the problem May be local (on line 18 (public class HeartBeat) )
What does this mean, how can I fix it?
this whole class is as follows:
package com.xxxxxxxxxxx.app.xxxx; public class HeartBeat { private static final Logger LOG = LoggerFactory.getLogger( HeartBeat.class ); private final File heartBeatFile; public HeartBeat( File heartBeatFile ) { this.heartBeatFile = heartBeatFile; } public void beat() { try { FileUtils.writeStringToFile( heartBeatFile, String.valueOf( System.currentTimeMillis() ) ); } catch( IOException e ) { LOG.error( "Error while writing heart beat log", e ); } } }
java intellij-idea code-review
Jerry Zhang Jun 06 '15 at 2:55 2015-06-06 02:55
source share