jdk/test/java/nio/Buffer/BasicShort.java
changeset 36933 3e6453e2d833
parent 31873 87b015c2cd36
child 37913 3cc95b690353
equal deleted inserted replaced
36930:74e9f4b90006 36933:3e6453e2d833
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   336 
   336 
   337 
   337 
   338 
   338 
   339 
   339 
   340 
   340 
       
   341 
       
   342 
       
   343 
       
   344 
       
   345 
       
   346 
       
   347 
       
   348 
       
   349 
       
   350 
       
   351 
       
   352 
       
   353 
       
   354 
       
   355 
       
   356 
       
   357 
       
   358 
       
   359 
       
   360 
       
   361 
       
   362 
       
   363 
       
   364 
       
   365 
       
   366 
       
   367 
       
   368 
       
   369 
       
   370 
       
   371 
       
   372 
       
   373 
       
   374 
       
   375 
       
   376 
       
   377 
       
   378 
       
   379 
       
   380 
       
   381 
       
   382 
       
   383 
       
   384 
       
   385 
       
   386 
       
   387 
       
   388 
       
   389 
       
   390 
       
   391 
       
   392 
       
   393 
       
   394 
       
   395 
       
   396 
       
   397 
       
   398 
       
   399 
       
   400 
       
   401 
       
   402 
       
   403 
       
   404 
       
   405 
       
   406 
       
   407 
       
   408 
       
   409 
       
   410 
       
   411 
       
   412 
       
   413 
       
   414 
       
   415 
       
   416 
       
   417 
       
   418 
       
   419 
       
   420 
       
   421 
       
   422 
       
   423 
       
   424 
       
   425 
       
   426 
       
   427 
       
   428 
       
   429 
       
   430 
       
   431 
       
   432 
       
   433 
       
   434 
       
   435 
       
   436 
       
   437 
   341     private static void fail(String problem,
   438     private static void fail(String problem,
   342                              ShortBuffer xb, ShortBuffer yb,
   439                              ShortBuffer xb, ShortBuffer yb,
   343                              short x, short y) {
   440                              short x, short y) {
   344         fail(problem + String.format(": x=%s y=%s", x, y), xb, yb);
   441         fail(problem + String.format(": x=%s y=%s", x, y), xb, yb);
   345     }
   442     }
   852 
   949 
   853 
   950 
   854 
   951 
   855         relPut(b);                       // Required by testViews
   952         relPut(b);                       // Required by testViews
   856 
   953 
       
   954 
       
   955 
       
   956 
       
   957 
       
   958 
   857     }
   959     }
   858 
   960 
   859 
   961 
   860 
   962 
   861 
   963