Commit f3319f61 authored by Ahmed Ashour's avatar Ahmed Ashour

java: remove redundant declaration of java.lang package

parent def8fa22
...@@ -25,11 +25,11 @@ public final class CvType { ...@@ -25,11 +25,11 @@ public final class CvType {
public static final int makeType(int depth, int channels) { public static final int makeType(int depth, int channels) {
if (channels <= 0 || channels >= CV_CN_MAX) { if (channels <= 0 || channels >= CV_CN_MAX) {
throw new java.lang.UnsupportedOperationException( throw new UnsupportedOperationException(
"Channels count should be 1.." + (CV_CN_MAX - 1)); "Channels count should be 1.." + (CV_CN_MAX - 1));
} }
if (depth < 0 || depth >= CV_DEPTH_MAX) { if (depth < 0 || depth >= CV_DEPTH_MAX) {
throw new java.lang.UnsupportedOperationException( throw new UnsupportedOperationException(
"Data type depth should be 0.." + (CV_DEPTH_MAX - 1)); "Data type depth should be 0.." + (CV_DEPTH_MAX - 1));
} }
return (depth & (CV_DEPTH_MAX - 1)) + ((channels - 1) << CV_CN_SHIFT); return (depth & (CV_DEPTH_MAX - 1)) + ((channels - 1) << CV_CN_SHIFT);
...@@ -89,7 +89,7 @@ public final class CvType { ...@@ -89,7 +89,7 @@ public final class CvType {
case CV_64F: case CV_64F:
return 8 * channels(type); return 8 * channels(type);
default: default:
throw new java.lang.UnsupportedOperationException( throw new UnsupportedOperationException(
"Unsupported CvType value: " + type); "Unsupported CvType value: " + type);
} }
} }
...@@ -122,7 +122,7 @@ public final class CvType { ...@@ -122,7 +122,7 @@ public final class CvType {
s = "CV_USRTYPE1"; s = "CV_USRTYPE1";
break; break;
default: default:
throw new java.lang.UnsupportedOperationException( throw new UnsupportedOperationException(
"Unsupported CvType value: " + type); "Unsupported CvType value: " + type);
} }
......
package org.opencv.imgproc; package org.opencv.imgproc;
import java.lang.Math;
//javadoc:Moments //javadoc:Moments
public class Moments { public class Moments {
......
...@@ -87,9 +87,9 @@ public class Utils { ...@@ -87,9 +87,9 @@ public class Utils {
*/ */
public static void bitmapToMat(Bitmap bmp, Mat mat, boolean unPremultiplyAlpha) { public static void bitmapToMat(Bitmap bmp, Mat mat, boolean unPremultiplyAlpha) {
if (bmp == null) if (bmp == null)
throw new java.lang.IllegalArgumentException("bmp == null"); throw new IllegalArgumentException("bmp == null");
if (mat == null) if (mat == null)
throw new java.lang.IllegalArgumentException("mat == null"); throw new IllegalArgumentException("mat == null");
nBitmapToMat2(bmp, mat.nativeObj, unPremultiplyAlpha); nBitmapToMat2(bmp, mat.nativeObj, unPremultiplyAlpha);
} }
...@@ -117,9 +117,9 @@ public class Utils { ...@@ -117,9 +117,9 @@ public class Utils {
*/ */
public static void matToBitmap(Mat mat, Bitmap bmp, boolean premultiplyAlpha) { public static void matToBitmap(Mat mat, Bitmap bmp, boolean premultiplyAlpha) {
if (mat == null) if (mat == null)
throw new java.lang.IllegalArgumentException("mat == null"); throw new IllegalArgumentException("mat == null");
if (bmp == null) if (bmp == null)
throw new java.lang.IllegalArgumentException("bmp == null"); throw new IllegalArgumentException("bmp == null");
nMatToBitmap2(mat.nativeObj, bmp, premultiplyAlpha); nMatToBitmap2(mat.nativeObj, bmp, premultiplyAlpha);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment