Skip to content

Instantly share code, notes, and snippets.

View matthughes's full-sized avatar

Matt Hughes matthughes

View GitHub Profile
This file has been truncated, but you can view the full file.
Sampling process 65571 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Google Chrome Helper (pid 65571) every 1 millisecond
Process: Google Chrome Helper [65571]
Path: /Applications/Google Chrome.app/Contents/Versions/30.0.1599.69/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper
Load Address: 0x4f000
Identifier: com.google.Chrome.helper
Version: 30.0.1599.69 (1599.69)
Code Type: X86 (Native)
@matthughes
matthughes / gist:5096112
Last active December 14, 2015 13:48
Uninitialized AnyVals sneaking past your validation
final class Foo private (val value: Int) extends AnyVal {
override def toString = value.toString
}
object Foo {
def apply(value: Int) = {
assert(value > 0)
new Foo(value)
}
}
org.eclipse.equinox.p2-aggregator ((bb6efb2...))$ pwd
/Users/mhughes/OpenSource/p2/rt.equinox.p2/org.eclipse.equinox.p2.releng/org.eclipse.equinox.p2-aggregator
org.eclipse.equinox.p2-aggregator ((bb6efb2...))$ mvn install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.eclipse:org.eclipse.equinox.p2-aggregator:0.0.1-SNAPSHOT (/Users/mhughes/OpenSource/p2/rt.equinox.p2/org.eclipse.equinox.p2.releng/org.eclipse.equinox.p2-aggregator/pom.xml) has 47 errors
[ERROR] Child module /Users/mhughes/OpenSource/p2/rt.equinox.p2/org.eclipse.equinox.p2.releng/org.eclipse.equinox.p2-aggregator/../ie.wombat.jbdiff of /Users/mhughes/OpenSource/p2/rt.equinox.p2/org.eclipse.equinox.p2.releng/org.eclipse.equinox.p2-aggregator/pom.xml does not exist