blob: 745538302b52b6a5253b54829aba92b9f87e0e3f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Helen Hawkins - iniital version
*******************************************************************************/
package org.eclipse.contribution.xref.internal.ui.policy;
/**
* @author hawkinsh
*
*/
public aspect Enforcement {
pointcut printToTheScreen() : (get(* System.out) || get(* System.err));
declare warning : printToTheScreen() : "There should be no printlns"; //$NON-NLS-1$
declare warning : call(* Exception.printStackTrace(..)) :
"There should be no calls to printStackTrace"; //$NON-NLS-1$
}