alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package duplicates_out;

public class A_test970 {
	static class Transaction {
		public void start(String string) {}
		public void run(Action action) {}
		public void run(String string) {}
		public void end() {}
	}
	static class Action {
		public Action(String string) {}
	}

	public void a3()
	{
		Transaction t = new Transaction();
		Action action = new Action(" A.a3");
		String string = "A.a3";
		extracted(t, action, string);
	}

	protected void extracted(Transaction t, Action action, String string) {
		/*[*/
		t.start(string);
		t.run(action);
		t.end();
		/*]*/
	}

	public void a4()
	{
		Transaction t = new Transaction();
		String t_name = "A.a4";

		Action action = new Action(t_name);

		t.start(t_name);
		t.run(t_name);
		t.end();
	}

	public void a6()
	{
		Transaction t = new Transaction();
		String t_name = "A.a6";

		Action action = new Action(t_name);
		extracted(t, action, t_name);
	}
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.