changeset 9860:872d3e03bbb5

8039863: Fix fallthrough lint warnings in sound Reviewed-by: kalli
author darcy
date Fri, 11 Apr 2014 11:03:13 -0700
parents 4dc800f5c546
children f3fe1074dcdf
files src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java	Fri Apr 11 17:28:45 2014 +0400
+++ b/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];