Author: rotty3000
Date: Tue Sep 25 14:14:12 2018
New Revision: 1841936

URL: http://svn.apache.org/viewvc?rev=1841936&view=rev
Log:
[CDI] header and cleanup

Signed-off-by: Raymond Auge <rotty3...@apache.org>

Modified:
    
aries/trunk/cdi/cdi-itests/src/main/java/org/apache/aries/cdi/test/cases/CloseableTracker.java

Modified: 
aries/trunk/cdi/cdi-itests/src/main/java/org/apache/aries/cdi/test/cases/CloseableTracker.java
URL: 
http://svn.apache.org/viewvc/aries/trunk/cdi/cdi-itests/src/main/java/org/apache/aries/cdi/test/cases/CloseableTracker.java?rev=1841936&r1=1841935&r2=1841936&view=diff
==============================================================================
--- 
aries/trunk/cdi/cdi-itests/src/main/java/org/apache/aries/cdi/test/cases/CloseableTracker.java
 (original)
+++ 
aries/trunk/cdi/cdi-itests/src/main/java/org/apache/aries/cdi/test/cases/CloseableTracker.java
 Tue Sep 25 14:14:12 2018
@@ -1,3 +1,17 @@
+/**
+ * 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.apache.aries.cdi.test.cases;
 
 import org.osgi.framework.BundleContext;
@@ -7,22 +21,12 @@ import org.osgi.util.tracker.ServiceTrac
 
 public class CloseableTracker<S, T> extends ServiceTracker<S, T> implements 
AutoCloseable {
 
-       @SuppressWarnings("unused")
-       private final StackTraceElement[] caller;
-
        public CloseableTracker(BundleContext context, Filter filter) {
                super(context, filter, null);
-               caller = new Exception().getStackTrace();
        }
 
        public CloseableTracker(BundleContext context, Filter filter, 
ServiceTrackerCustomizer<S, T> customizer) {
                super(context, filter, customizer);
-               caller = new Exception().getStackTrace();
-       }
-
-       @Override
-       public void close() {
-               super.close();
        }
 
 }


Reply via email to