Skip to content

Commit

Permalink
Make some visibility modifiers a bit more strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Feb 16, 2015
1 parent 2a2efe8 commit 0d17aaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/webkit/src/main/scala/net/liftweb/http/LiftRules.scala
Expand Up @@ -264,7 +264,7 @@ class LiftRules() extends Factory with FormVendor with LazyLoggable {
*/
val beforeSend = RulesSeq[(BasicResponse, HTTPResponse, List[(String, String)], Box[Req]) => Any]

private lazy val defaultSecurityRules = SecurityRules()
private[this] lazy val defaultSecurityRules = SecurityRules()
/**
* The security rules used by Lift to secure this application. These mostly
* relate to HTTPS handling and HTTP `Content-Security-Policy`. See the
Expand Down
Expand Up @@ -272,13 +272,13 @@ final case class ContentSecurityPolicy(
}
}

private lazy val reportOnlyHeaders = {
private[this] lazy val reportOnlyHeaders = {
List(
"Content-Security-Policy-Report-Only" -> contentSecurityPolicyString,
"X-Content-Security-Policy-Report-Only" -> contentSecurityPolicyString
)
}
private lazy val enforcedHeaders = {
private[this] lazy val enforcedHeaders = {
List(
"Content-Security-Policy" -> contentSecurityPolicyString,
"X-Content-Security-Policy" -> contentSecurityPolicyString
Expand Down Expand Up @@ -333,7 +333,7 @@ case class ContentSecurityPolicyViolation(
originalPolicy: String
)
object ContentSecurityPolicyViolation extends LazyLoggable {
private implicit val formats = DefaultFormats
private[this] implicit val formats = DefaultFormats

def defaultViolationHandler: DispatchPF = {
case request @ Req(start :: "content-security-policy-report" :: Nil, _, _) if start == LiftRules.liftContextRelativePath =>
Expand Down

0 comments on commit 0d17aaa

Please sign in to comment.