X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2FTestDataUtils.java;h=2755db864272c087ee54a09b5ccf49dc1d8ff99a;hb=a2ecbd2a3eae94576fe4db3d651bc0908245da90;hp=c05a5a54454d2c9f9396915b1f7da1baeb97c17c;hpb=ee6c3543a0ff9403420ce6a9c647723269f14331;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/TestDataUtils.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/TestDataUtils.java index c05a5a544..2755db864 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/TestDataUtils.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/TestDataUtils.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.core.test; import org.argeo.slc.UnsupportedException; @@ -30,6 +46,7 @@ public class TestDataUtils { * Returns it self after making the proper checks. Used for test data being * their own data providers. */ + @SuppressWarnings("unchecked") public static T getItSelf(Class clss, TestData testDataObject) { if (clss.isAssignableFrom(testDataObject.getClass())) {