public with sharing class ExampleOfDebugIssue {
	public class Nested {
		private Integer counter = 0;
		private String text = 'Something';

		public Nested(Integer value) {
			this(value * 2, 'Created using ' + value);
		}

		public Nested(Integer counter, String text) {
			this.counter = counter;
			this.text = text;
		}

		public Integer getCounter() {
			return counter;
		}

		public String getText() {
			return this.text;
		}

		public Integer issue1492() {
			List<Integer> values = new List<Integer> {
					123,
					500,
					245,
					26,
					23,
					465,
					466,
					29,
					37
			};

			List<Integer> factors = new List<Integer> {
					3,
					5
			};

			Integer total = 0;

			values.sort();

			for (Integer value : values) {
				if (Math.mod(value, 2) == 0) {
					for (Integer factor : factors) {
						if (value * factor > 1492) {
							System.debug('Got a live one!');
							total += value;
						}
					}
				}
			}

			return total;
		}
	}

	private Nested nested = null;

	public ExampleOfDebugIssue(Integer value) {
		this.nested = new Nested(value);
	}

	public Nested getNested() {
		return this.nested;
	}
}