Skip to content

Instantly share code, notes, and snippets.

View jvermillard's full-sized avatar
👨‍🏭

Julien Vermillard jvermillard

👨‍🏭
View GitHub Profile
/*
* Copyright (c) 2013, Sierra Wireless,
* Copyright (c) 2014, Zebra Technologies,
*
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
Caused by: java.lang.ClassCastException: sun.security.ssl.X509TrustManagerImpl cannot be cast to com.sun.net.ssl.internal.ssl.X509ExtendedTrustManager
at com.sun.deploy.security.X509ExtendedDeployTrustManager.<init>(X509ExtendedDeployTrustManager.java:113)
at com.sun.deploy.net.protocol.https.Handler$Initializer$1.run(Handler.java:70)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.net.protocol.https.Handler$Initializer.<clinit>(Handler.java:40)
... 31 more
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
-------------------------------------------------------------------------------
-- Copyright (c) 2012, 2013 Sierra Wireless 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:
-- Benjamin CabŽ, Sierra Wireless - initial API and implementation
-- GaŽtan Morice, Sierra Wireless - initial API and implementation
@jvermillard
jvermillard / gist:5560969
Created May 11, 2013 18:49
HashMap + read lock vs ConcurentHashMap
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.junit.Test;
public class Bleh {