title: Intellij will not detect code changes when running
body: <p>Intellij will not detect my code changes when I try to run my discord bot java project using the Intellij Run function, in the compiled class files it shows my code changes yet when I run it appears to be using old code as its not doing what my current code shows. (btw I am using maven if that is of importance)</p>
  <p>I have already tried: restaritng Intellij, invalidating cache, refresh files from disk, deleting .idea and target folder of my project, created a new project and copied the code over, cleaing package, but nothing seems to fix it.</p>
  <p>This is the code it's running inside a if statement:</p>
  <pre class="lang-java prettyprint-override"><code>if (!splitName[2].equals(String.valueOf(i))) {
      System.out.println(&quot;inproper&quot;);
  }
  </code></pre>
  <p>This is the code it SHOULD be running (also I know some code is commented out, I already tried running it but it didn't detect it):</p>
  <pre class="lang-java prettyprint-override"><code>if (!splitName[2].equals(String.valueOf(i))) {
      System.out.println(&quot;test1&quot;);
      System.out.println(&quot;test2&quot;);
      /*System.out.println(&quot;inproper&quot;);
      VoiceChannel voiceChannel = guild.getVoiceChannelById(currentAutoVoiceChannels.get(type).get(0));
      if (voiceChannel == null) {
          System.out.println(&quot;null&quot;);
      } else {
          System.out.println(voiceChannel.getIdLong());
          System.out.println(voiceChannel.getPosition());
  
      }
      System.out.println(channel.getId());
      channel.getParent().modifyVoiceChannelPositions().selectPosition(channel).moveTo(guild.getVoiceChannelById(currentAutoVoiceChannels.get(type).get(0)).getPosition() + (i - 1)).queue();*/
      System.out.println(&quot;test3&quot;);
      System.out.println(&quot;test4&quot;);
  }
  </code></pre>