1 /******************************************************************************* 2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 3 * This program and the accompanying materials are made available under 4 * the terms of the Eclipse Public License 2.0 which is available at 5 * http://www.eclipse.org/legal/epl-2.0 6 * 7 * SPDX-License-Identifier: EPL-2.0 8 * 9 * Contributors: 10 * Marc R. Hoffmann - initial API and implementation 11 * 12 *******************************************************************************/ 13 package org.jacoco.core.internal.instr; 14 15 import org.objectweb.asm.ClassVisitor; 16 import org.objectweb.asm.MethodVisitor; 17 18 /** 19 * The strategy does not emit any code at all. This is used for interface types 20 * without any code. 21 */ 22 class NoneProbeArrayStrategy implements IProbeArrayStrategy { 23 storeInstance(final MethodVisitor mv, final boolean clinit, final int variable)24 public int storeInstance(final MethodVisitor mv, final boolean clinit, 25 final int variable) { 26 throw new UnsupportedOperationException(); 27 } 28 addMembers(final ClassVisitor delegate, final int probeCount)29 public void addMembers(final ClassVisitor delegate, final int probeCount) { 30 // nothing to do 31 } 32 33 } 34