Home | History | Annotate | Download | only in targets
      1 /*******************************************************************************
      2  * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
      3  * All rights reserved. This program and the accompanying materials
      4  * are made available under the terms of the Eclipse Public License v1.0
      5  * which accompanies this distribution, and is available at
      6  * http://www.eclipse.org/legal/epl-v10.html
      7  *
      8  * Contributors:
      9  *    Evgeny Mandrikov - initial API and implementation
     10  *
     11  *******************************************************************************/
     12 package org.jacoco.core.test.validation.targets;
     13 
     14 public enum EnumImplicitMethods { // $line-classdef$
     15 
     16 	CONST(Stubs.f() ? new Object() : new Object()); // $line-const$
     17 
     18 	static {
     19 	} // $line-staticblock$
     20 
     21 	/**
     22 	 * Unlike in {@link Target07 regular classes}, even if enum has explicit
     23 	 * constructor, {@code clinit} method in any case has a reference to the
     24 	 * line of enum definition.
     25 	 */
     26 	EnumImplicitMethods(Object o) { // $line-super$
     27 	} // $line-constructor$
     28 
     29 	/**
     30 	 * This method should not be excluded from analysis unlike implicitly
     31 	 * created {@link #valueOf(String)} method that refers to the line of enum
     32 	 * definition in case of javac and to the first line in case of ECJ.
     33 	 */
     34 	public void valueOf() {
     35 	} // $line-customValueOfMethod$
     36 
     37 	/**
     38 	 * This method should not be excluded from analysis unlike implicitly
     39 	 * created {@link #values()} method that refers to the line of enum
     40 	 * definition in case of javac and to the first line in case of ECJ.
     41 	 */
     42 	public void values(Object o) {
     43 	} // $line-customValuesMethod$
     44 
     45 	public static void main(String[] args) {
     46 	}
     47 
     48 }
     49