8039863: Fix fallthrough lint warnings in sound
authordarcy
Fri, 11 Apr 2014 11:03:13 -0700
changeset 24180 446aa8d470e6
parent 24179 c80b1690a57b
child 24181 954e976a72fb
8039863: Fix fallthrough lint warnings in sound Reviewed-by: kalli
jdk/src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java
--- a/jdk/src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java	Fri Apr 11 17:28:45 2014 +0400
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java	Fri Apr 11 11:03:13 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -118,6 +118,7 @@
         return null;
     }
 
+    @SuppressWarnings("fallthrough")
     public void processControlLogic() {
         for (int i = 0; i < used_count; i++) {
 
@@ -170,6 +171,7 @@
                         this.delay[i][0] / 1200.0) / control_time);
                 if (stage_ix[i] < 0)
                     stage_ix[i] = 0;
+                // Fallthrough
             case EG_DELAY:
                 if (stage_ix[i] == 0) {
                     double attack = this.attack[i][0];