ResName constructor should trim() the attribute value passed in.

Badly formatted XML such as

      <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle
        </item>

Note the wrapped text content causes the actual string passed in to be followed with a CR and whitespace.

Real android handles this formatting fine, so should Robolectric
ResName constructor should trim() the attribute value passed in.

Badly formatted XML such as

      <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle
        </item>

Note the wrapped text content causes the actual string passed in to be followed with a CR and whitespace.

Real android handles this formatting fine, so should Robolectric
Merge branch 'master' of https://github.com/robolectric/robolectric
Merge branch 'master' of https://github.com/jongerrish/robolectric
Merge pull request #1221 from jongerrish/master

ResName constructor should trim() the attribute value passed in.
Set the data in ShadowIntent when using the four-arg constructor
Merge pull request #1225 from scottkennedy/master

Set the data in ShadowIntent when using the four-arg constructor
fix for issue #1227. Adding getSentBroadcastIntents and getRegisteredBroadcastReceivers

Change-Id: Ie524fa4b7a2bfbe3ee9ef5616d178b34a79b5d10
Added test to reproduce NotSerializableException, sample stack:

testSerializableOfParcelableExtra(org.robolectric.shadows.IntentTest)  Time elapsed: 0.015 sec  <<< ERROR!
java.lang.RuntimeException: java.io.NotSerializableException: org.robolectric.shadows.TestParcelable
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
	at java.util.ArrayList.writeObject(ArrayList.java:742)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
	at org.robolectric.shadows.ShadowIntent.serializeCycle(ShadowIntent.java:646)
	at org.robolectric.shadows.ShadowIntent.putExtra(ShadowIntent.java:263)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.robolectric.bytecode.ShadowWrangler$ShadowMethodPlan.run(ShadowWrangler.java:473)
	at android.content.Intent.putExtra(Intent.java)
	at org.robolectric.shadows.IntentTest.testSerializableOfParcelableExtra(IntentTest.java:113)

Fixed bug by removing unncecesary attempt to serialize a Serializable
Add ShadowOverScroller.
Merge pull request #1233 from tec27/overscroller

Add ShadowOverScroller.
Merge pull request #1229 from blanconet/fix-put-exra-serializable

Added test to reproduce NotSerializableException.
Merge pull request #1228 from spotify/adding-localbroadcast-shadow

Adding getSentBroadcastIntents and getRegisteredBroadcastReceivers.