changeset 221:2146ba8bc43a

8132463: SPIDeviceConfig/index.html#Ctor1Tests and SPIDeviceConfig/index.html#Ctor2Tests fail due to missed IAE Summary: Add check of contorllerNamber parameter; Fix check of address parameter Reviewed-by: snazarki Contributed-by: olga.milovskaya@oracle.com
author snazarki
date Wed, 29 Jul 2015 11:51:44 +0300
parents 93cb2dd1d0e0
children 622781a8dcaf
files src/share/classes/jdk/dio/spibus/SPIDeviceConfig.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/jdk/dio/spibus/SPIDeviceConfig.java	Tue Jul 28 18:45:46 2015 +0300
+++ b/src/share/classes/jdk/dio/spibus/SPIDeviceConfig.java	Wed Jul 29 11:51:44 2015 +0300
@@ -689,7 +689,8 @@
     }
 
     private void checkParameters(){
-        Utils.checkIntValue(address);
+        Utils.checkIntValue(controllerNumber);
+        Utils.checkIntZeroOrPozitive(address);
         Utils.checkGreaterThanZero(clockFrequency);
         checkCsActive(csActive);
         checkClockMode(clockMode);