IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.util
Class Noop

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.util.Noop

public class Noop
extends Object

A noop class that has non-operation methods that accomplish useful things such as providing a way to add a line of code that a breakpoint can be set at that does nothing--or a way to do something with a variable that can bypass compiler warnings such as a variable is never read.


Method Summary
static void noop()
          The noop method simply does nothing; an empty statement.
static void sink(Object object)
          Sinks an object or basically takes an object and does nothing with it, used primarily for doing something with an object so it is seen as being used (for compiler warning bypass, etc).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

noop

public static void noop()
The noop method simply does nothing; an empty statement.


sink

public static void sink(Object object)
Sinks an object or basically takes an object and does nothing with it, used primarily for doing something with an object so it is seen as being used (for compiler warning bypass, etc).

Parameters:
object -

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.